Skip to content

Commit fb39005

Browse files
authored
mute.c: fix whois logic (#81)
apologies... heh... this fixes a bug where it'll show any user who whois'd themself that they are muted, regardless of mute
1 parent 2c938ee commit fb39005

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

files/mute.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module
2525
ModuleHeader MOD_HEADER
2626
= {
2727
"third/mute",
28-
"1.1",
28+
"1.2",
2929
"Globally mute a user",
3030
"Valware",
3131
"unrealircd-6",
@@ -469,7 +469,7 @@ int mute_configrun(ConfigFile *cf, ConfigEntry *ce, int type)
469469

470470
int who_the_hell_be_muted_lol(Client *client, Client *target, NameValuePrioList **list)
471471
{
472-
if ((IsMuted(target) && IsOper(client)) || (target == client && ourconf.show_reason))
472+
if (IsMuted(target) && (IsOper(client) || (target == client && ourconf.show_reason)))
473473
add_nvplist_numeric(list, 0, "muted", client, RPL_WHOISSPECIAL, target->name, "has been muted");
474474

475475
return HOOK_CONTINUE;

0 commit comments

Comments
 (0)