X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/1e993296169bee2848c039b6de1b93d524ce6b53..8ce9df050cb90b5124cdea7c53ab801599795a33:/src/opserv.c diff --git a/src/opserv.c b/src/opserv.c index 7f3e0cc..b699874 100644 --- a/src/opserv.c +++ b/src/opserv.c @@ -45,7 +45,6 @@ #include #endif - #define OPSERV_CONF_NAME "services/opserv" #define KEY_ALERT_CHANNEL "alert_channel" @@ -2409,7 +2408,7 @@ static MODCMD_FUNC(cmd_stats_alerts) { reply("OSMSG_ALERTS_BAR"); for (it = dict_first(opserv_user_alerts); it; it = iter_next(it)) { alert = iter_data(it); - if(m && (!match_ircglob(alert->text_discrim, m) && strcasecmp(alert->owner, m)) ) + if(m && (!match_ircglob(alert->text_discrim, m) && strcasecmp(alert->owner, m) && strcasecmp(iter_key(it), m))) continue; /* not a match to requested filter */ switch (alert->reaction) { case REACT_NOTICE: reaction = "notice"; break;