--- glob2.org/src/IRC.cpp 2004-12-03 02:43:37.000000000 +0100 +++ glob2/src/IRC.cpp 2004-12-03 15:12:17.000000000 +0100 @@ -26,6 +26,9 @@ #include "IRC.h" #include +#include +#include "GameGUIDialog.h" +#include "GlobalContainer.h" // version related stuff #ifdef HAVE_CONFIG_H @@ -148,7 +151,6 @@ // this is a debug printf to reverse engineer IRC protocol //printf("IRC command is : [%s] Source is [%s]\n", cmd, source); - if (strcasecmp(cmd, "PRIVMSG")==0) { char *diffusion=strtok(NULL, " :"); @@ -270,6 +272,7 @@ usersOnChannelsModified = true; } } + else if (strcasecmp(cmd, "433")==0) { if (strlen(this->nick) < IRC_NICK_SIZE) @@ -281,6 +284,18 @@ sendString(command); joinChannel("#glob2"); } + + else + { + const char *nicktaken = Toolkit::getStringTable()->getString("[nick taken]"); + const char *ok = Toolkit::getStringTable()->getString("[ok]"); + int res=(int)MessageBox(globalContainer->gfx, "standard", MB_ONEBUTTON, nicktaken, ok); + + if (res != 0 ) + { + assert(false); + } + } } }