1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 08:36:38 +02:00

InspIRCd: Add handler for FIDENT to 2.0 protocol, so we know when someone changes ident on the network

This commit is contained in:
attilamolnar
2012-10-24 01:59:36 +02:00
committed by Adam
parent ef5c6684c7
commit fca9ec085e
+12
View File
@@ -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> &params) 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)
{