added msg_out, nick_change, and part callback support

This commit is contained in:
Diego Martínez
2013-03-28 23:29:23 -03:00
parent f19033185b
commit 809ca1b526
3 changed files with 66 additions and 21 deletions

View File

@ -133,6 +133,12 @@ mt_irc.say = function ( to, msg )
end
to = to or mt_irc.channel;
msg = msg or "";
local msg2 = mt_irc._callback("msg_out", true, to, msg);
if ((type(msg2) == "boolean") and (not msg2)) then
return;
elseif (msg2 ~= nil) then
msg = tostring(msg);
end
irc.say(to, msg);
end