All unignoring nicks just like ignore

This commit is contained in:
TingPing 2013-03-17 16:20:38 -03:00
parent e8a78b9aa1
commit c58a741abb
1 changed files with 6 additions and 0 deletions

View File

@ -3289,6 +3289,12 @@ cmd_unignore (struct session *sess, char *tbuf, char *word[],
char *arg = word[3]; char *arg = word[3];
if (*mask) if (*mask)
{ {
if (strchr (mask, '?') == NULL && strchr (mask, '*') == NULL)
{
mask = tbuf;
snprintf (tbuf, TBUFSIZE, "%s!*@*", word[2]);
}
if (ignore_del (mask, NULL)) if (ignore_del (mask, NULL))
{ {
if (g_ascii_strcasecmp (arg, "QUIET")) if (g_ascii_strcasecmp (arg, "QUIET"))