summaryrefslogtreecommitdiff
path: root/src/modules/m_check.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_check.cpp')
-rw-r--r--src/modules/m_check.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp
index 23b641294..4b38c9fcb 100644
--- a/src/modules/m_check.cpp
+++ b/src/modules/m_check.cpp
@@ -69,7 +69,7 @@ class cmd_check : public command_t
/* user is away */
user->WriteServ(checkstr + " awaymsg " + targuser->awaymsg);
}
- if (targuser->oper[0] != 0)
+ if (IS_OPER(targuser))
{
/* user is an oper of type ____ */
user->WriteServ(checkstr + " opertype " + irc::Spacify(targuser->oper));