From: kainazzzo Date: Mon, 5 Apr 2004 01:55:37 +0000 (+0000) Subject: Fixed a logic error in the do_identify command X-Git-Url: https://jfr.im/git/irc/gameservirc.git/commitdiff_plain/f48a0d15e458e186f505fa3cbd8eba24bcea2816 Fixed a logic error in the do_identify command git-svn-id: https://svn.code.sf.net/p/gameservirc/code/trunk@147 bc333340-6410-0410-a689-9d09f3c113fa --- diff --git a/gameserv/gameserv.cpp b/gameserv/gameserv.cpp index 7237e0e..c0e7d61 100644 --- a/gameserv/gameserv.cpp +++ b/gameserv/gameserv.cpp @@ -538,7 +538,6 @@ void do_list(char *u) notice(s_GameServ, u, "People Playing:"); while(temp) { - #ifdef P10 notice(s_GameServ, u, "IRC: %s Game: %s", temp->getData()->getRealNick(), temp->getData()->stats->name); @@ -616,7 +615,7 @@ void do_identify(char *u) } else if (!(p = findplayer(name)) || !p->stats) notice(s_GameServ, u, "Player %s not found", name); - else if (p->stats->user == NULL && !isAdmin(user)) + else if (p->stats->user != NULL && !isAdmin(user)) { notice(s_GameServ, u, "That player has already identified."); return; diff --git a/gameserv/tcpclient.cpp b/gameserv/tcpclient.cpp index c06f667..2796867 100644 --- a/gameserv/tcpclient.cpp +++ b/gameserv/tcpclient.cpp @@ -321,7 +321,9 @@ int main(int argc, char *argv[]) quitter->stats->fight = NULL; quitter->stats->master = NULL; + log("%s", quitter->getNick()); quitter->setNick("!NULL!"); + log("%s", quitter->getNick()); quitter->stats->user = NULL; // Unidentify them }