summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-24 16:31:51 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-24 16:31:51 +0000
commit39b852bb8ef6183414ae06f68929fad6100959e4 (patch)
treeaa787f2c2f09e9fa905693272529b445a263555b /src
parentc0eda93f4e758d5f2e1875d828076cd8f2089335 (diff)
Sum not being propogated properly, attempted fix
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1497 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/commands.cpp2
-rw-r--r--src/inspircd.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 1cdf214ab..0570db66d 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -2865,7 +2865,7 @@ void process_restricted_commands(char token,char* params,serverrec* source,serve
// ?
// ping
case '?':
- snprintf(buffer,MAXBUF,":%s !",CreateSum().c_str());
+ snprintf(buffer,MAXBUF,"%s !",CreateSum().c_str());
reply->SendPacket(buffer,tcp_host);
break;
// ?
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index c9b271942..f11070d07 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -2943,7 +2943,7 @@ int InspIRCd(char** argv, int argc)
for (int ctr = 0; ctr < msgs.size(); ctr++)
{
strlcpy(tcp_msg,msgs[ctr].c_str(),MAXBUF);
- strlcpy(tcp_sum,msgs[ctr].c_str(),MAXBUF);
+ strlcpy(tcp_sum,sums[ctr].c_str(),MAXBUF);
log(DEBUG,"Processing: %s",tcp_msg);
if (!tcp_msg[0])
{