X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/61ffa214b4ea6a13b4e9bab4f4ce5fa2ecb338a9..fdbbf311ef10d7458bb3c313be02000a75f0972a:/src/s_user.c diff --git a/src/s_user.c b/src/s_user.c index 198249c..c64d50f 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -1470,6 +1470,13 @@ change_nick_user_host(struct Client *target_p, const char *nick, const char *use chptr = mscptr->chptr; mptr = mode; + if(is_owner(mscptr)) + { + *mptr++ = 'a'; + strcat(modeval, nick); + strcat(modeval, " "); + } + if(is_chanop(mscptr)) { *mptr++ = 'o'; @@ -1477,6 +1484,13 @@ change_nick_user_host(struct Client *target_p, const char *nick, const char *use strcat(modeval, " "); } + if(is_halfop(mscptr)) + { + *mptr++ = 'h'; + strcat(modeval, nick); + strcat(modeval, " "); + } + if(is_voiced(mscptr)) { *mptr++ = 'v';