1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 08:16:37 +02:00

Added opertype:modes

This commit is contained in:
Adam
2011-08-02 01:50:09 -04:00
parent 41b40f6504
commit d43e1fb800
5 changed files with 29 additions and 3 deletions
+8
View File
@@ -363,6 +363,14 @@ void User::Identify(NickAlias *na)
ircdproto->SetAutoIdentificationToken(this);
FOREACH_MOD(I_OnNickIdentify, OnNickIdentify(this));
if (na->nc->o != NULL && na->nc->o->ot != NULL && !na->nc->o->ot->modes.empty())
{
BotInfo *bi = findbot(Config->OperServ);
this->SetModes(bi, "%s", na->nc->o->ot->modes.c_str());
if (bi != NULL)
this->SendMessage(bi, "Changing your usermodes to \002%s\002", na->nc->o->ot->modes.c_str());
}
}