summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_check.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp
index 4b38c9fcb..7a7fe570b 100644
--- a/src/modules/m_check.cpp
+++ b/src/modules/m_check.cpp
@@ -64,16 +64,19 @@ class cmd_check : public command_t
user->WriteServ(checkstr + " modes +" + targuser->FormatModes());
user->WriteServ(checkstr + " snomasks +" + targuser->FormatNoticeMasks());
user->WriteServ(checkstr + " server " + targuser->server);
- if (targuser->awaymsg[0] != 0)
+
+ if (IS_AWAY(targuser))
{
/* user is away */
user->WriteServ(checkstr + " awaymsg " + targuser->awaymsg);
}
+
if (IS_OPER(targuser))
{
/* user is an oper of type ____ */
user->WriteServ(checkstr + " opertype " + irc::Spacify(targuser->oper));
}
+
if (IS_LOCAL(targuser))
{
/* port information is only held for a local user! */