+ if (z == ':')
+ source++;
+
+ if (!(quitter = find(source)))
+ {
+ log("Fatal Error: could not find %s in the "\
+ "clients list", source);
+ goto end;
+ }
+
+ logout(quitter);
+
+ if (z == ':')
+ source--;
+
+ /* Attempting to use the logout() function
+ if ((quitter = find(source)))
+ clients[hv].remove(quitter);
+ if ((quitter = findIRCplayer(source)))
+ {
+ if (player_fight(quitter))
+ {
+ // Stop the fight on the other client
+ aClient *otherplayer = quitter->stats->battle;
+ otherplayer->stats->battle = NULL;
+ notice(s_GameServ, otherplayer->getNick(), "%s "\
+ "has quit IRC. The fight stops here.",
+ quitter->stats->name);
+ }
+ quitter->stats->battle = NULL;
+ quitter->stats->fight = NULL;
+ quitter->stats->master = NULL;
+
+ quitter->setNick("Not Playing");
+ #ifdef P10
+ quitter->setRealNick("Not Playing");
+ #endif
+ quitter->stats->client = NULL; // Unidentify them
+ }
+ */
+
+ #if defined(P10)
+ } else if (stricmp(cmd, "P") == 0) {
+ char *rest, *dest;
+ char *longname;
+ longname = new char[strlen(s_GameServ) + strlen(servername) + 2];
+
+ sprintf(longname, "%S@%s", servername);
+
+ dest = strtok(NULL, " ");
+ rest = strtok(NULL, "");
+ if (stricmp(dest, gsnum) == 0 || stricmp(dest, longname) == 0)
+ {
+ delete [] longname;
+ gameserv(source, rest);
+ }
+ else if (stricmp(dest, c_Forest) == 0 && isListenOnCF())
+ {
+ delete [] longname;
+ forest(source, rest);
+ }
+ #else