Update find_channel_status() for halfop and owner.
This commit is contained in:
parent
823e288d57
commit
b8643345db
|
@ -175,11 +175,18 @@ find_channel_membership(struct Channel *chptr, struct Client *client_p)
|
|||
const char *
|
||||
find_channel_status(struct membership *msptr, int combine)
|
||||
{
|
||||
static char buffer[3];
|
||||
static char buffer[5];
|
||||
char *p;
|
||||
|
||||
p = buffer;
|
||||
|
||||
if(is_owner(msptr))
|
||||
{
|
||||
if(!combine)
|
||||
return "!";
|
||||
*p++ = '!';
|
||||
}
|
||||
|
||||
if(is_chanop(msptr))
|
||||
{
|
||||
if(!combine)
|
||||
|
@ -187,6 +194,13 @@ find_channel_status(struct membership *msptr, int combine)
|
|||
*p++ = '@';
|
||||
}
|
||||
|
||||
if(is_halfop(msptr))
|
||||
{
|
||||
if(!combine)
|
||||
return "%";
|
||||
*p++ = '%';
|
||||
}
|
||||
|
||||
if(is_voiced(msptr))
|
||||
*p++ = '+';
|
||||
|
||||
|
|
Loading…
Reference in New Issue