diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-12 20:59:30 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-12 20:59:30 +0000 |
commit | 33008f95c75f71bf9aa0a870ba9e09940fc753b2 (patch) | |
tree | 4e9bfff3db48bc81fc3f179b5d3eedab49d1aa85 /src | |
parent | 3dc2055bb03658cb2a1ecab7177519290f8532af (diff) |
Last IS_AWAY fix. No more *u->awaymsg. :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7003 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_check.cpp | 5 |
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! */ |