summaryrefslogtreecommitdiff
path: root/modules/protocol/hybrid.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-10-14 01:05:24 -0400
committerAdam <Adam@anope.org>2012-10-14 01:05:24 -0400
commit4fdc157f68d2034c243563269ae12b5c27885a18 (patch)
tree85c8828a7e4fbb1423e35eee40849a33ec4c08c4 /modules/protocol/hybrid.cpp
parent0a950669cb18d297d1cf7cf9c57570653680e117 (diff)
Better clarify signon vs timestamp and allow updating users timestamp to an ircd given value from NICK
Diffstat (limited to 'modules/protocol/hybrid.cpp')
-rw-r--r--modules/protocol/hybrid.cpp5
1 files changed, 3 insertions, 2 deletions
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<Anope::string> &params) anope_override
{
- source.GetUser()->ChangeNick(params[0]);
+ source.GetUser()->ChangeNick(params[0], convertTo<time_t>(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;