Last IS_AWAY fix. No more *u->awaymsg. :)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7003 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
w00t 2007-05-12 20:59:30 +00:00
parent 3dc2055bb0
commit 33008f95c7

View File

@ -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! */