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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user