summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-ignore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/irc/irc-ignore.c')
-rw-r--r--src/plugins/irc/irc-ignore.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/irc/irc-ignore.c b/src/plugins/irc/irc-ignore.c
index 57d408ee8..4fb9d5f89 100644
--- a/src/plugins/irc/irc-ignore.c
+++ b/src/plugins/irc/irc-ignore.c
@@ -309,17 +309,14 @@ irc_ignore_free (struct t_irc_ignore *ignore)
}
/* free data */
- if (ignore->mask)
- free (ignore->mask);
+ free (ignore->mask);
if (ignore->regex_mask)
{
regfree (ignore->regex_mask);
free (ignore->regex_mask);
}
- if (ignore->server)
- free (ignore->server);
- if (ignore->channel)
- free (ignore->channel);
+ free (ignore->server);
+ free (ignore->channel);
/* remove ignore from list */
if (ignore->prev_ignore)