diff options
-rw-r--r-- | src/cmd_userhost.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd_userhost.cpp b/src/cmd_userhost.cpp index afe1a4358..aa4d3de3e 100644 --- a/src/cmd_userhost.cpp +++ b/src/cmd_userhost.cpp @@ -72,13 +72,13 @@ void cmd_userhost::Handle (char **parameters, int pcnt, userrec *user) userrec *u = Find(parameters[i]); if(u) { - if(strchr(u->modes,'o')) - if(strchr(user->modes, 'o')) + if(*u->oper) + if(*user->oper) snprintf(junk,MAXBUF,"%s*=+%s@%s ",u->nick,u->ident,u->host); else snprintf(junk,MAXBUF,"%s*=+%s@%s ",u->nick,u->ident,u->dhost); else - if(strchr(user->modes, 'o')) + if(*user->oper) snprintf(junk,MAXBUF,"%s=+%s@%s ",u->nick,u->ident,u->host); else snprintf(junk,MAXBUF,"%s=+%s@%s ",u->nick,u->ident,u->dhost); |