Skip to content

Commit 2c938ee

Browse files
authored
Fix a config item not being set (#80)
* Fix a config item not being set we were checking for "lagtime" when we needed "lag-time" * Let users see if they are muted, if the config allows it...
1 parent a368dc6 commit 2c938ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

files/mute.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module
2525
ModuleHeader MOD_HEADER
2626
= {
2727
"third/mute",
28-
"1.0",
28+
"1.1",
2929
"Globally mute a user",
3030
"Valware",
3131
"unrealircd-6",
@@ -457,7 +457,7 @@ int mute_configrun(ConfigFile *cf, ConfigEntry *ce, int type)
457457
safe_strdup(ourconf.reason, cep->value);
458458
continue;
459459
}
460-
if (!strcmp(cep->name,"lagtime"))
460+
if (!strcmp(cep->name,"lag-time"))
461461
{
462462
ourconf.lagby = atoi(cep->value);
463463
continue;
@@ -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))
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)