Fix serious ms_relay bug and drop RL requests if the target server quit.
[ircu2.10.12-pk.git] / ircd / m_relay.c
index 12bf74183400996d425ec10de4559068b19e3a17..30731fb58c3fe066543cfd9516d78e001648b78e 100644 (file)
@@ -141,6 +141,7 @@ signed int ms_relay(struct Client* cptr, struct Client* sptr, signed int parc, c
             return 0;
     }
 
+    if(!server) return 0;
     if(server != &me) {
         if(parc > 3) {
             act = buffer;