summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xline.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xline.cpp b/src/xline.cpp
index b87e236a3..d83967aa0 100644
--- a/src/xline.cpp
+++ b/src/xline.cpp
@@ -328,7 +328,7 @@ void sync_xlines(serverrec* serv, char* tcp_host)
{
if (i->is_global)
{
- snprintf(netdata,MAXBUF,"} %s %s %ld %ld :%s",i->ipaddr,i->source,i->set_time,i->duration,i->reason);
+ snprintf(data,MAXBUF,"} %s %s %ld %ld :%s",i->ipaddr,i->source,i->set_time,i->duration,i->reason);
serv->SendPacket(data,tcp_host);
}
}
@@ -336,14 +336,14 @@ void sync_xlines(serverrec* serv, char* tcp_host)
{
if (i->is_global)
{
- snprintf(netdata,MAXBUF,"{ %s %s %ld %ld :%s",i->ipaddr,i->source,i->set_time,i->duration,i->reason);
+ snprintf(data,MAXBUF,"{ %s %s %ld %ld :%s",i->ipaddr,i->source,i->set_time,i->duration,i->reason);
serv->SendPacket(data,tcp_host);
}
}
// glines are always global, so no need to check
for (std::vector<GLine>::iterator i = glines.begin(); i != glines.end(); i++)
{
- snprintf(netdata,MAXBUF,"# %s %s %ld %ld :%s",i->ipaddr,i->source,i->set_time,i->duration,i->reason);
+ snprintf(data,MAXBUF,"# %s %s %ld %ld :%s",i->ipaddr,i->source,i->set_time,i->duration,i->reason);
serv->SendPacket(data,tcp_host);
}
}