From e6fa614ad27cd68aa61605ca0884eee9c44384eb Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 12 May 2007 16:22:35 +0000 Subject: We've had an IS_OPER macro for a long time. About time we started using it, maybe? :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6990 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_userhost.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd_userhost.cpp') diff --git a/src/cmd_userhost.cpp b/src/cmd_userhost.cpp index 363ba611c..6f31ad6a7 100644 --- a/src/cmd_userhost.cpp +++ b/src/cmd_userhost.cpp @@ -35,7 +35,7 @@ CmdResult cmd_userhost::Handle (const char** parameters, int pcnt, userrec *user { retbuf = retbuf + " "; - if (*u->oper) + if (IS_OPER(u)) { retbuf = retbuf + "*=+"; } @@ -46,7 +46,7 @@ CmdResult cmd_userhost::Handle (const char** parameters, int pcnt, userrec *user retbuf = retbuf + u->ident + "@"; - if (*user->oper) + if (IS_OPER(user)) { retbuf = retbuf + u->host; } -- cgit v1.3.1-10-gc9f91