summaryrefslogtreecommitdiff
path: root/src/xline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xline.cpp')
-rw-r--r--src/xline.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xline.cpp b/src/xline.cpp
index 92f5ac3a4..7452d81f0 100644
--- a/src/xline.cpp
+++ b/src/xline.cpp
@@ -288,6 +288,12 @@ void add_zline(long duration, const char* source, const char* reason, const char
del_zline(ipaddr);
ZLine item;
item.duration = duration;
+ if (strchr(ipaddr,'@'))
+ {
+ while (*ipaddr != '@')
+ ipaddr++;
+ ipaddr++;
+ }
strlcpy(item.ipaddr,ipaddr,MAXBUF);
strlcpy(item.reason,reason,MAXBUF);
strlcpy(item.source,source,MAXBUF);