summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/operserv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/operserv.c b/src/operserv.c
index 1836f943e..adc0ce115 100644
--- a/src/operserv.c
+++ b/src/operserv.c
@@ -2882,7 +2882,7 @@ int check_sqline(char *nick, int nick_change)
{
int i;
SXLine *sx;
- char *reason;
+ char *reason = NULL;
if (sqlines.count == 0)
return 0;
@@ -2900,9 +2900,10 @@ int check_sqline(char *nick, int nick_change)
if (match_wild_nocase(sx->mask, nick)) {
sqline(sx->mask, sx->reason);
/* We kill nick since s_sqline can't */
+ reason = smalloc(strlen(sx->reason) + 10);
snprintf(reason, sizeof(reason), "Q-Lined: %s", sx->reason);
kill_user(s_OperServ, nick, reason);
-
+ free(reason);
return 1;
}
}