Hack around to make halfop support actually work.
This commit is contained in:
parent
ed92b9a8bd
commit
83b19b7c5a
@ -270,6 +270,9 @@ static int who_arg_to_ovmask(char *str)
|
|||||||
ovmask |= NICKOP;
|
ovmask |= NICKOP;
|
||||||
if (strchr(str, '+'))
|
if (strchr(str, '+'))
|
||||||
ovmask |= NICKVOICED;
|
ovmask |= NICKVOICED;
|
||||||
|
/* most likely useless */
|
||||||
|
if (strchr(str, '%'))
|
||||||
|
ovmask |= NICKHALFOP;
|
||||||
return ovmask;
|
return ovmask;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -296,7 +299,10 @@ static int irc_352(struct link_server *server, struct line *line)
|
|||||||
if (!nick)
|
if (!nick)
|
||||||
return OK_COPY_WHO;
|
return OK_COPY_WHO;
|
||||||
|
|
||||||
nick->ovmask = who_arg_to_ovmask(line->elemv[7]);
|
/* it seems halfop status is not reported in whoreply messages
|
||||||
|
* do we really need to parse this ? */
|
||||||
|
nick->ovmask &= NICKHALFOP;
|
||||||
|
nick->ovmask |= who_arg_to_ovmask(line->elemv[7]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return OK_COPY_WHO;
|
return OK_COPY_WHO;
|
||||||
|
Loading…
Reference in New Issue
Block a user