Update change_nick_user_host() to support +ah.
This commit is contained in:
parent
b8643345db
commit
da77e1eed9
14
src/s_user.c
14
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';
|
||||
|
|
Loading…
Reference in New Issue