]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/connection.cpp
Fixed some channel pointer stuff (eeeky)
[user/henk/code/inspircd.git] / src / connection.cpp
index ce166ace088913b8dde22d46f53464ee6e4d78a7..61c3c5bfedd130baf796dc1ac36010be7a103d28 100644 (file)
 
 using namespace std;
 
+
 extern std::vector<Module*> modules;
 extern std::vector<ircd_module*> factory;
 
 extern int MODCOUNT;
 
+
+
 connection::connection()
 {
        fd = 0;
@@ -331,6 +334,9 @@ void ircd_connector::SetDescriptor(int fd)
 
 bool connection::SendPacket(char *message, const char* host)
 {
+       if ((!message) || (!host))
+               return true;
+
        ircd_connector* cn = this->FindHost(host);
        
        if (!strchr(message,'\n'))