#endif
List<aClient> players;
+
Monster *monsters[LEVELS][MONSTERS]; // Monsters per level. Total = MONSTERS * LEVELS
Monster *masters[LEVELS]; // A master for each level
char *cmd;
cmd = strtok(buf, " ");
- source++; // Get rid of that : at the beginning of a :Nick privmsg Gameserv :text
- cmd++; // Get rid of that : at the beginning of the :text (command)
+ #ifndef P10
+ source++; // Get rid of that : at the beginning of a :Nick privmsg Gameserv :text
+ #endif
+
+ if (cmd[0] == ':')
+ cmd++; // Get rid of that : at the beginning of the :text (command)
#ifdef DEBUGMODE
log("Source: %s Command: %s", source, cmd);
do_tavern(source);
} else if (stricmp(cmd, "LIST") == 0) {
do_list(source);
+ #ifdef DEBUGMODE
+ } else if (stricmp(cmd, "PRINT") == 0) {
+ cout << "Printing the clients list:" << endl;
+ clients.print();
+ cout << "\nPrinting the players list:" << endl;
+ players.print();
+ #endif
} else if (stricmp(cmd, "REGISTER") == 0) {
do_register(source);
} else if (stricmp(cmd, "IDENTIFY") == 0) {
else
{
save_gs_dbase();
- raw("SQUIT %s :leaving", servername);
+ #ifdef P10
+ raw("SQ %s 0 :leaving", servername);
+ #else
+ raw("SQUIT %s :leaving", servername);
+ #endif
}
} else if (stricmp(cmd, "SAVE") == 0) {
aClient *user;
#if !defined(P10)
sprintf(input, ":%s NOTICE %s :", source, dest);
#else
- sprintf(input, "%s N %s :", gsnum, dest);
+ sprintf(input, "%s O %s :", gsnum, dest);
#endif
dest--;
#if !defined(P10)
sprintf(input, ":%s NOTICE %s :", source, dest);
#else
- sprintf(input, "%s N %s :", gsnum, dest);
+ sprintf(input, "%s O %s :", gsnum, dest);
#endif
}