diff options
author | Adam <Adam@anope.org> | 2011-08-02 01:50:09 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-02 01:50:09 -0400 |
commit | d43e1fb8002131db86453b6a931679a26e0bb9a6 (patch) | |
tree | a8d0433cad168a447884d0f93c7511986174b30e /src/users.cpp | |
parent | 41b40f6504b33e720233d5bcbdd5fce998d7d86f (diff) |
Added opertype:modes
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp index 343ef058a..214f3c91b 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -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()); + } } |