We have two perfectly good macros, use them

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8835 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
w00t 2008-02-05 15:05:36 +00:00
parent ada79c95bd
commit 488ea09da2

View File

@ -233,12 +233,12 @@ void TreeSocket::SendUsers(TreeServer* Current)
u->second->ident, u->second->FormatModes(), u->second->GetIPString(),
(unsigned long)u->second->signon, u->second->fullname);
this->WriteLine(data);
if (*u->second->oper)
if (IS_OPER(u->second))
{
snprintf(data,MAXBUF,":%s OPERTYPE %s", u->second->uuid, u->second->oper);
this->WriteLine(data);
}
if (*u->second->awaymsg)
if (IS_AWAY(u->second))
{
snprintf(data,MAXBUF,":%s AWAY :%s", u->second->uuid, u->second->awaymsg);
this->WriteLine(data);