diff options
| author | Adam <Adam@anope.org> | 2012-10-26 17:30:41 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2012-10-26 17:30:41 -0400 |
| commit | e1dcf24c98a14340e3c05388b749fb6069592d0e (patch) | |
| tree | 51bb3bfbc4240d0130293c53f2926727f712ebb5 /modules | |
| parent | 3b24311db6664407b34cce4080b48d18ff2eb997 (diff) | |
Add nickserv:modesonid config option to set what modes users get on identify
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/protocol/inspircd-ts6.h | 2 | ||||
| -rw-r--r-- | modules/pseudoclients/nickserv.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/modules/protocol/inspircd-ts6.h b/modules/protocol/inspircd-ts6.h index fefff1d15..f01184d12 100644 --- a/modules/protocol/inspircd-ts6.h +++ b/modules/protocol/inspircd-ts6.h @@ -587,7 +587,7 @@ struct IRCDMessageMetadata : IRCDMessage /* Sometimes a user connects, we send them the usual "this nickname is registered" mess (if * their server isn't syncing) and then we receive this.. so tell them about it. */ - if (bi) + if (u->server->IsSynced() && bi) u->SendMessage(bi, _("You have been logged in as \2%s\2."), nc->display.c_str()); } } diff --git a/modules/pseudoclients/nickserv.cpp b/modules/pseudoclients/nickserv.cpp index 4115ee9b0..34e8a5524 100644 --- a/modules/pseudoclients/nickserv.cpp +++ b/modules/pseudoclients/nickserv.cpp @@ -253,6 +253,9 @@ class NickServCore : public Module chan_set_correct_modes(u, c, 1, true); } + if (!Config->NSModesOnID.empty()) + u->SetModes(NickServ, "%s", Config->NSModesOnID.c_str()); + if (Config->NSForceEmail && u->Account()->email.empty()) { u->SendMessage(NickServ, _("You must now supply an e-mail for your nick.\n" |
