summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-23 12:31:31 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-23 12:31:31 +0000
commit836a0b159f46044a81b373323d0b332bfabd3ec4 (patch)
tree509e41c2a04cfff5e193152444caaf44850146ee
parenta423766f8b15e38aae9430b928bed53394af1c88 (diff)
Message forwarding fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@702 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/commands.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index c142e58b2..553f2db58 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -1851,6 +1851,12 @@ void handle_R(char token,char* params,serverrec* source,serverrec* reply, char*
{
char* server = strtok(params," ");
char* data = strtok(NULL,"\r\n");
+ if ((!data) || (!server))
+ {
+ log(DEBUG,"Someones playing silly buggers, attempting to send to a null server or send a null message (BUG?)");
+ return;
+ }
+
log(DEBUG,"Forwarded packet '%s' to '%s'",data,server);
NetSendToOne(server,data);
}