summaryrefslogtreecommitdiff
path: root/src/modules/m_userip.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-15 19:23:01 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-15 19:23:01 +0000
commitfeaf72ecb48470114fbe3f3058b5f4b9622b88a5 (patch)
tree838377c1155b6fdb00460d6e52ffcb4bdf17f053 /src/modules/m_userip.cpp
parentd715c1936e96ce05d9cc4eea2fd4afab3ad02539 (diff)
Removed a whole lot of strchr's looking for mode +o where we can do if *user->oper
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3221 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_userip.cpp')
-rw-r--r--src/modules/m_userip.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_userip.cpp b/src/modules/m_userip.cpp
index 48befe370..4ffeca3d5 100644
--- a/src/modules/m_userip.cpp
+++ b/src/modules/m_userip.cpp
@@ -44,7 +44,7 @@ class cmd_userip : public command_t
userrec *u = Find(parameters[i]);
if (u)
{
- snprintf(junk,MAXBUF,"%s%s=+%s@%s ",u->nick,strchr(u->modes,'o') ? "*" : "",u->ident,(char*)inet_ntoa(u->ip4));
+ snprintf(junk,MAXBUF,"%s%s=+%s@%s ",u->nick,*u->oper ? "*" : "",u->ident,(char*)inet_ntoa(u->ip4));
strlcat(Return,junk,MAXBUF);
}
}