X-Git-Url: http://winboard.nl/cgi-bin?p=capablanca.git;a=blobdiff_plain;f=lasker-2.2.3%2Fbots%2Fmamer%2FCommandEntry.cc;fp=lasker-2.2.3%2Fbots%2Fmamer%2FCommandEntry.cc;h=39c884bce7667ce26a0f58ee078eb17c050cf7a1;hp=c9b25f00e2effce1e32219d33954beb4423f5e21;hb=0ff5591bb1fcb56b4ebf451eb30fb3c413eaad2d;hpb=0673decdb041b796d55fe77e7e4eaf32895265b3 diff --git a/lasker-2.2.3/bots/mamer/CommandEntry.cc b/lasker-2.2.3/bots/mamer/CommandEntry.cc index c9b25f0..39c884b 100644 --- a/lasker-2.2.3/bots/mamer/CommandEntry.cc +++ b/lasker-2.2.3/bots/mamer/CommandEntry.cc @@ -3,14 +3,13 @@ // // Matthew E. Moses & Michael A. Long // -// $Log: CommandEntry.cc,v $ -// Revision 1.15 2002/07/02 00:05:19 tridge -// got rid of a bunch of RCS tags now that its in CVS +// $Revision: 1.13 $ +// $Date: 1998/09/10 19:57:17 $ // -// Revision 1.14 2002/07/02 00:02:40 tridge -// - fixed compile on g++ 2.96 -// - updated for lasker 'rmatch' +// $Author: mlong $ +// $Locker: $ // +// $Log: CommandEntry.cc,v $ // Revision 1.13 1998/09/10 19:57:17 mlong // lots of little bug fixes and a few new features // @@ -49,6 +48,8 @@ // //-------------------------------------------------------------------------- +// static char RCSid[] = "$Id: CommandEntry.cc,v 1.13 1998/09/10 19:57:17 mlong Exp $"; + #include "CommandEntry.hh" #include "Mamer.hh" @@ -749,16 +750,17 @@ int CommandEntry::ListTourneys(User *user, param_list params) { int CommandEntry::JoinTourney(User *user, param_list params) { Tourney *tourn = NULL; Player *newEntry = NULL; - +printf("join\n"); tourn = gMamer.FindTourney(params[0].val.integer); if(NULL != tourn) { newEntry = new Player(user->name, params[0].val.integer); +printf("entry=%d\n",newEntry); gMamer.pendingList.Append(newEntry); gMamer.XServerCom("getpi %s%s", user->name, "\n"); return(1); } - +printf("error\n"); gMamer.TellUser(TourneyNotFound, user->name, params[0].val.integer); return(0); }