From 4fdc157f68d2034c243563269ae12b5c27885a18 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 14 Oct 2012 01:05:24 -0400 Subject: Better clarify signon vs timestamp and allow updating users timestamp to an ircd given value from NICK --- modules/protocol/hybrid.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/protocol/hybrid.cpp') diff --git a/modules/protocol/hybrid.cpp b/modules/protocol/hybrid.cpp index 87388f0b3..74f0ee51e 100644 --- a/modules/protocol/hybrid.cpp +++ b/modules/protocol/hybrid.cpp @@ -352,7 +352,7 @@ struct IRCDMessageNick : IRCDMessage /* :0MCAAAAAB NICK newnick 1350157102 */ bool Run(MessageSource &source, const std::vector ¶ms) anope_override { - source.GetUser()->ChangeNick(params[0]); + source.GetUser()->ChangeNick(params[0], convertTo(params[1])); return true; } }; @@ -511,7 +511,7 @@ struct IRCDMessageSjoin : IRCDMessage * Don't trigger OnJoinChannel event then as the user will be destroyed */ if (MOD_RESULT != EVENT_STOP && c->ci && c->ci->CheckKick(u)) - continue; + continue; FOREACH_MOD(I_OnJoinChannel, OnJoinChannel(u, c)); } @@ -627,6 +627,7 @@ class ProtoHybrid : public Module CoreIRCDMessageTime core_message_time; CoreIRCDMessageTopic core_message_topic; CoreIRCDMessageVersion core_message_version; + CoreIRCDMessageWhois core_message_whois; /* Our message handlers */ IRCDMessageBMask message_bmask; -- cgit