summaryrefslogtreecommitdiff
path: root/include/modules
diff options
context:
space:
mode:
Diffstat (limited to 'include/modules')
-rw-r--r--include/modules/sasl.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/modules/sasl.h b/include/modules/sasl.h
index 23337ebe8..ec6d741ca 100644
--- a/include/modules/sasl.h
+++ b/include/modules/sasl.h
@@ -110,7 +110,14 @@ namespace SASL
delete s;
}
- Log(Config->GetClient("NickServ")) << "A user failed to identify for account " << this->GetAccount() << " using SASL";
+ Anope::string accountstatus;
+ NickAlias *na = NickAlias::Find(GetAccount());
+ if (!na)
+ accountstatus = "nonexistent ";
+ else if (na->nc->HasExt("NS_SUSPENDED"))
+ accountstatus = "suspended ";
+
+ Log(Config->GetClient("NickServ")) << "A user failed to identify for " << accountstatus << "account " << this->GetAccount() << " using SASL";
}
};
}