]> jfr.im git - irc/UndernetIRC/gnuworld.git/commitdiff
No idea if any module is still using this, but removing ourself from memory when...
authorSpike <redacted>
Mon, 20 Sep 2010 17:36:25 +0000 (17:36 +0000)
committerSpike <redacted>
Mon, 20 Sep 2010 17:36:25 +0000 (17:36 +0000)
libircu/msg_JU.cc

index 6bda8c9b94f9e6deee1369ea6485b3ec9d6a44ce..69981fa1a04b3e38f10105ce3ad6dc7d91ddd6b1 100644 (file)
@@ -17,7 +17,7 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
  * USA.
  *
- * $Id: msg_JU.cc,v 1.8 2007/08/28 16:10:00 dan_karrels Exp $
+ * $Id: msg_JU.cc,v 1.9 2010/09/20 17:36:25 denspike Exp $
  */
 
 #include       <string>
@@ -28,7 +28,7 @@
 #include       "xparameters.h"
 #include       "ServerCommandHandler.h"
 
-RCSTAG( "$Id: msg_JU.cc,v 1.8 2007/08/28 16:10:00 dan_karrels Exp $" ) ;
+RCSTAG( "$Id: msg_JU.cc,v 1.9 2010/09/20 17:36:25 denspike Exp $" ) ;
 
 namespace gnuworld
 {
@@ -102,6 +102,11 @@ else
                elog << "msg_JU> Cant find server for removal" << endl;
                return false;
                }
+       if(jupeServer->getCharYY() == theServer->getCharYY())
+               {
+               elog << "msg_JU> Let's not even try to remove ourself" << endl;
+               return false;
+               }
        // BUG: Nothing here?
        if(!Network->removeServer(jupeServer->getIntYY(),true))
                {}