1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 17:43:14 +02:00

set the vhost before we call ns_ajoin or other modules on identify

This commit is contained in:
DukePyrolator
2011-02-17 07:00:03 +01:00
parent 18bd33f9a4
commit ab0422b4d4
+2 -2
View File
@@ -77,8 +77,6 @@ class CommandNSIdentify : public Command
u->UpdateHost();
FOREACH_MOD(I_OnNickIdentify, OnNickIdentify(u));
Log(LOG_COMMAND, u, this) << "and identified for account " << u->Account()->display;
source.Reply(_("Password accepted - you are now recognized."));
if (ircd->vhost)
@@ -86,6 +84,8 @@ class CommandNSIdentify : public Command
if (Config->NSModeOnID)
do_setmodes(u);
FOREACH_MOD(I_OnNickIdentify, OnNickIdentify(u));
if (Config->NSForceEmail && u->Account() && u->Account()->email.empty())
{
source.Reply(_("You must now supply an e-mail for your nick.\n"