]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Sync fixes for m_park et al
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 9 Jan 2006 00:46:30 +0000 (00:46 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 9 Jan 2006 00:46:30 +0000 (00:46 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2744 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules.cpp
src/modules/m_spanningtree.cpp

index 0f838032a202850b4b8e85e0e9568053704b5113..b3b2daab36fca62d4347663bc6e287f17d3bb041 100644 (file)
@@ -620,6 +620,7 @@ bool Server::PseudoToUser(userrec* alive,userrec* zombie,std::string message)
 {
        log(DEBUG,"PseudoToUser");
        zombie->fd = alive->fd;
+       FOREACH_MOD(I_OnUserQuit,OnUserQuit(alive,message));
        alive->fd = FD_MAGIC_NUMBER;
        alive->FlushWriteBuf();
        alive->ClearBuffer();
index f2836534cf7002fe83d04608736749a4e47ae133..e210263ac25c2dbb85679a733af2586acfa7da30 100644 (file)
@@ -1569,7 +1569,7 @@ class TreeSocket : public InspSocket
                        if (params.size() == 1)
                        {
                                userrec* x = Srv->FindNick(params[0]);
-                               if (x->fd > -1)
+                               if ((x) && (x->fd > -1))
                                {
                                        userrec* x = Srv->FindNick(params[0]);
                                        log(DEBUG,"Got IDLE");
@@ -1595,7 +1595,7 @@ class TreeSocket : public InspSocket
                        {
                                std::string who_did_the_whois = params[0];
                                userrec* who_to_send_to = Srv->FindNick(who_did_the_whois);
-                               if (who_to_send_to->fd > -1)
+                               if ((who_to_send_to) && (who_to_send_to->fd > -1))
                                {
                                        log(DEBUG,"Got final IDLE");
                                        // an incoming reply to a whois we sent out