]> git.lizzy.rs Git - luairc.git/commitdiff
follow the rfc more closely for ERRMSG responses
authorjluehrs2 <jluehrs2@uiuc.edu>
Tue, 4 Sep 2007 20:50:48 +0000 (15:50 -0500)
committerjluehrs2 <jluehrs2@uiuc.edu>
Tue, 4 Sep 2007 20:50:48 +0000 (15:50 -0500)
src/irc.lua

index 25b9b462db31b784a6677df78e9423e91bfd649d..33ba88827169aa628414348ee4342cb69ddb7efd 100644 (file)
@@ -241,7 +241,7 @@ function handlers.on_privmsg(from, to, msg)
             if base.type(ctcp_handlers[cb]) == "function" then
                 ctcp_handlers[cb](from, to, table.concat(words, " "))
             else
-                notice(from, c("ERRMSG", "Unknown query: " .. received_command))
+                notice(from, c("ERRMSG", received_command, ":Unknown query"))
             end
             -- }}}
         else
@@ -525,7 +525,7 @@ end
 
 -- on_errmsg {{{
 function ctcp_handlers.on_errmsg(from, to, message)
-    notice(from, c("ERRMSG", message .. "No error has occurred"))
+    notice(from, c("ERRMSG", message, ":No error has occurred"))
 end
 -- }}}