diff options
Diffstat (limited to 'modules/protocol')
-rw-r--r-- | modules/protocol/inspircd20.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/protocol/inspircd20.cpp b/modules/protocol/inspircd20.cpp index 1ebbc041f..c547a11d6 100644 --- a/modules/protocol/inspircd20.cpp +++ b/modules/protocol/inspircd20.cpp @@ -486,6 +486,17 @@ struct IRCDMessageEncap : IRCDMessage } }; +struct IRCDMessageFIdent : IRCDMessage +{ + IRCDMessageFIdent() : IRCDMessage("FIDENT", 1) { SetFlag(IRCDMESSAGE_REQUIRE_USER); } + + bool Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override + { + source.GetUser()->SetIdent(params[0]); + return true; + } +}; + class ProtoInspIRCd : public Module { InspIRCd20Proto ircd_proto; @@ -526,6 +537,7 @@ class ProtoInspIRCd : public Module /* Our message handlers */ IRCDMessageCapab message_capab; IRCDMessageEncap message_encap; + IRCDMessageFIdent message_fident; void SendChannelMetadata(Channel *c, const Anope::string &metadataname, const Anope::string &value) { |