Skip to content
Permalink
Browse files

Merge pull request #240 from SaberUK/2.0+bot

Mark pseudoclients as bots on InspIRCd if the bot mode exists.
  • Loading branch information...
Adam- committed Mar 31, 2019
2 parents 34f65e3 + 0defcda commit 6a42c1a4f360464b19b053c3bd307f31201d08b5
Showing with 4 additions and 0 deletions.
  1. +4 −0 modules/protocol/inspircd20.cpp
@@ -410,6 +410,7 @@ struct IRCDMessageCapab : Message::Capab
Servers::Capab.insert("SERVERS");
Servers::Capab.insert("TOPICLOCK");
IRCD->CanSVSHold = false;
IRCD->DefaultPseudoclientModes = "+I";
}
else if (params[0].equals_cs("CHANMODES") && params.size() > 1)
{
@@ -562,7 +563,10 @@ struct IRCDMessageCapab : Message::Capab
UserMode *um = NULL;

if (modename.equals_cs("bot"))
{
um = new UserMode("BOT", modechar[0]);
IRCD->DefaultPseudoclientModes += modechar;
}
else if (modename.equals_cs("callerid"))
um = new UserMode("CALLERID", modechar[0]);
else if (modename.equals_cs("cloak"))

0 comments on commit 6a42c1a

Please sign in to comment.
You can’t perform that action at this time.