summaryrefslogtreecommitdiff
path: root/modules/commands
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands')
-rw-r--r--modules/commands/greet.cpp2
-rw-r--r--modules/commands/ns_identify.cpp2
-rw-r--r--modules/commands/ns_set.cpp6
-rw-r--r--modules/commands/ns_status.cpp2
4 files changed, 6 insertions, 6 deletions
diff --git a/modules/commands/greet.cpp b/modules/commands/greet.cpp
index 7e1b5ce75..963a28ffd 100644
--- a/modules/commands/greet.cpp
+++ b/modules/commands/greet.cpp
@@ -188,7 +188,7 @@ class Greet : public Module
* to has synced, or we'll get greet-floods when the net
* recovers from a netsplit. -GD
*/
- if (!c->ci || !c->ci->bi || !user->server->IsSynced() || !user->Account())
+ if (!c->ci || !c->ci->bi || !user->server->IsSynced() || !user->IsIdentified())
return;
Anope::string *greet = ns_greet.Get(user->Account());
diff --git a/modules/commands/ns_identify.cpp b/modules/commands/ns_identify.cpp
index e0d0f601a..545001602 100644
--- a/modules/commands/ns_identify.cpp
+++ b/modules/commands/ns_identify.cpp
@@ -82,7 +82,7 @@ class CommandNSIdentify : public Command
return;
}
- if (u->Account() && na && u->Account() == na->nc)
+ if (u->IsIdentified() && na && u->Account() == na->nc)
{
source.Reply(_("You are already identified."));
return;
diff --git a/modules/commands/ns_set.cpp b/modules/commands/ns_set.cpp
index a3bfb3630..5ec161421 100644
--- a/modules/commands/ns_set.cpp
+++ b/modules/commands/ns_set.cpp
@@ -1286,7 +1286,7 @@ class NSSet : public Module
if (chan->ci)
{
/* Only give modes if autoop is set */
- give_modes &= !user->Account() || autoop.HasExt(user->Account());
+ give_modes &= !user->IsIdentified() || autoop.HasExt(user->Account());
}
}
@@ -1321,13 +1321,13 @@ class NSSet : public Module
void OnUserModeSet(const MessageSource &setter, User *u, const Anope::string &mname) anope_override
{
- if (u->Account() && setter.GetUser() == u)
+ if (u->IsIdentified() && setter.GetUser() == u)
u->Account()->last_modes = u->GetModeList();
}
void OnUserModeUnset(const MessageSource &setter, User *u, const Anope::string &mname) anope_override
{
- if (u->Account() && setter.GetUser() == u)
+ if (u->IsIdentified() && setter.GetUser() == u)
u->Account()->last_modes = u->GetModeList();
}
diff --git a/modules/commands/ns_status.cpp b/modules/commands/ns_status.cpp
index d0e15cc92..04a43ef64 100644
--- a/modules/commands/ns_status.cpp
+++ b/modules/commands/ns_status.cpp
@@ -36,7 +36,7 @@ class CommandNSStatus : public Command
else if (u2->IsIdentified() && na && na->nc == u2->Account()) /* Nick is identified */
source.Reply("STATUS %s %d %s", nickbuf.c_str(), 3, u2->Account()->display.c_str());
else if (u2->IsRecognized()) /* Nick is recognised, but NOT identified */
- source.Reply("STATUS %s %d %s", nickbuf.c_str(), 2, u2->Account() ? u2->Account()->display.c_str() : "");
+ source.Reply("STATUS %s %d %s", nickbuf.c_str(), 2, u2->IsIdentified() ? u2->Account()->display.c_str() : "");
else if (!na) /* Nick is online, but NOT a registered */
source.Reply("STATUS %s %d %s", nickbuf.c_str(), 0, "");
else