diff options
author | miwob <michael@wobst.at> | 2014-06-19 16:27:05 +0200 |
---|---|---|
committer | miwob <michael@wobst.at> | 2014-06-19 16:27:05 +0200 |
commit | 37bd2c238eed91444a6812c6592c4e4ced3773a9 (patch) | |
tree | e76afaa9b06e1f987edb6682973e6277a14688bc /modules/protocol/hybrid.cpp | |
parent | 4f7868b1250fa02be825a193970bfb08e32e5d96 (diff) |
hybrid.cpp: add our own SendInvite() which sends the channel's timestamp along the INVITE command. INVITE with channel TS will be mandatory in some future release of ircd-hybrid
Diffstat (limited to 'modules/protocol/hybrid.cpp')
-rw-r--r-- | modules/protocol/hybrid.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/protocol/hybrid.cpp b/modules/protocol/hybrid.cpp index 7c2c14098..52c442dc3 100644 --- a/modules/protocol/hybrid.cpp +++ b/modules/protocol/hybrid.cpp @@ -51,6 +51,11 @@ class HybridProto : public IRCDProto MaxModes = 4; } + void SendInvite(const MessageSource &source, const Channel *c, User *u) anope_override + { + UplinkSocket::Message(source) << "INVITE " << u->GetUID() << " " << c->name << " " << c->creation_time; + } + void SendGlobalNotice(BotInfo *bi, const Server *dest, const Anope::string &msg) anope_override { UplinkSocket::Message(bi) << "NOTICE $$" << dest->GetName() << " :" << msg; |