diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-25 00:37:31 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-25 00:37:31 +0000 |
commit | 5b00f1a19622514d2e7b29b23463f0e80fec3c93 (patch) | |
tree | 00d66a50d5f1a00a0d814e67e4c3e39c78b88578 /src/xline.cpp | |
parent | b25c31de6b8dd839429cb168f5731a5605e17366 (diff) |
XLine fixes and fix to +l with large limits
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@721 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/xline.cpp')
-rw-r--r-- | src/xline.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xline.cpp b/src/xline.cpp index 1ef612ff1..152ca6e82 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -205,6 +205,7 @@ void read_xline_defaults() void add_gline(long duration, char* source, char* reason, char* hostmask) { + del_gline(hostmask); GLine item; item.duration = duration; strncpy(item.hostmask,hostmask,MAXBUF); @@ -219,6 +220,7 @@ void add_gline(long duration, char* source, char* reason, char* hostmask) void add_qline(long duration, char* source, char* reason, char* nickname) { + del_qline(nickname); QLine item; item.duration = duration; strncpy(item.nick,nickname,MAXBUF); @@ -233,6 +235,7 @@ void add_qline(long duration, char* source, char* reason, char* nickname) void add_zline(long duration, char* source, char* reason, char* ipaddr) { + del_zline(ipaddr); ZLine item; item.duration = duration; strncpy(item.ipaddr,ipaddr,MAXBUF); @@ -247,6 +250,7 @@ void add_zline(long duration, char* source, char* reason, char* ipaddr) void add_kline(long duration, char* source, char* reason, char* hostmask) { + del_kline(hostmask); KLine item; item.duration = duration; strncpy(item.hostmask,hostmask,MAXBUF); |