summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-04-01 01:57:12 -0400
committerAdam <Adam@anope.org>2011-04-01 01:57:12 -0400
commitd1328d876a988329b3bdeb94999cfd696e6aa7a5 (patch)
tree4858e233f5585d53bdf4cbb6d092b333a8ec2840
parentfaa85564fc29495ef47254ddc17a2846ef20e2ad (diff)
Fixed a typo making ns_register crash
-rw-r--r--modules/core/ns_register.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/core/ns_register.cpp b/modules/core/ns_register.cpp
index 36adfd471..ef2adb08a 100644
--- a/modules/core/ns_register.cpp
+++ b/modules/core/ns_register.cpp
@@ -36,6 +36,7 @@ class CommandNSConfirm : public Command
source.Reply(_(NICK_X_NOT_REGISTERED), passcode.c_str());
else if (na->nc->HasFlag(NI_UNCONFIRMED) == false)
source.Reply(_("Nick \002%s\002 is already confirmed."), na->nick.c_str());
+ else
{
na->nc->UnsetFlag(NI_UNCONFIRMED);
Log(LOG_ADMIN, u, this) << "to confirm nick " << na->nick << " (" << na->nc->display << ")";