From d635fdec2b527573da6400cc718d0a6b9c5e2e8a Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Tue, 4 Sep 2007 15:50:48 -0500 Subject: follow the rfc more closely for ERRMSG responses --- src/irc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/irc.lua b/src/irc.lua index 25b9b46..33ba888 100644 --- a/src/irc.lua +++ b/src/irc.lua @@ -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 -- }}} -- cgit v1.2.3-54-g00ecf