git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@702
e03df62e-2008-0410-955e-
edbf42e46eb7
{
char* server = strtok(params," ");
char* data = strtok(NULL,"\r\n");
{
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);
}
log(DEBUG,"Forwarded packet '%s' to '%s'",data,server);
NetSendToOne(server,data);
}