diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-15 19:23:01 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-15 19:23:01 +0000 |
commit | feaf72ecb48470114fbe3f3058b5f4b9622b88a5 (patch) | |
tree | 838377c1155b6fdb00460d6e52ffcb4bdf17f053 /src/cmd_who.cpp | |
parent | d715c1936e96ce05d9cc4eea2fd4afab3ad02539 (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/cmd_who.cpp')
-rw-r--r-- | src/cmd_who.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd_who.cpp b/src/cmd_who.cpp index 8292c0167..ecb52ea29 100644 --- a/src/cmd_who.cpp +++ b/src/cmd_who.cpp @@ -88,7 +88,7 @@ void cmd_who::Handle (char **parameters, int pcnt, userrec *user) } else { strlcat(tmp, "H", 9); } - if (strchr(i->second->modes,'o')) { strlcat(tmp, "*", 9); } + if (*i->second->oper) { strlcat(tmp, "*", 9); } WriteServ(user->fd,"352 %s %s %s %s %s %s %s :0 %s",user->nick, Ptr ? Ptr->name : "*", i->second->ident, i->second->dhost, i->second->server, i->second->nick, tmp, i->second->fullname); if (n_list++ > Config->MaxWhoResults) { @@ -125,7 +125,7 @@ void cmd_who::Handle (char **parameters, int pcnt, userrec *user) } else { strlcat(tmp, "H", 9); } - if (strchr(i->second->modes,'o')) { strlcat(tmp, "*", 9); } + if (*i->second->oper) { strlcat(tmp, "*", 9); } strlcat(tmp, cmode(i->second, Ptr),5); WriteServ(user->fd,"352 %s %s %s %s %s %s %s :0 %s",user->nick, Ptr->name, i->second->ident, i->second->dhost, i->second->server, i->second->nick, tmp, i->second->fullname); n_list++; @@ -156,7 +156,7 @@ void cmd_who::Handle (char **parameters, int pcnt, userrec *user) } else { strlcat(tmp, "H" ,9); } - if (strchr(u->modes,'o')) { strlcat(tmp, "*" ,9); } + if (*u->oper) { strlcat(tmp, "*" ,9); } WriteServ(user->fd,"352 %s %s %s %s %s %s %s :0 %s",user->nick, u->chans.size() && u->chans[0].channel ? u->chans[0].channel->name : "*", u->ident, u->dhost, u->server, u->nick, tmp, u->fullname); } |