30.07.2014, 21:36
I have an annoying issue since 2 days - my irc bot does not connect to any irc servers. I tried my community irc server, my localhost irc server and sa:mp irc server (irc.tl). On all of them the bot just does not connect. I've made a raw logfile but ofcourse when it does not connect it doesn't log.
Output:
It just doesn't do anything ...
Can anyone fix this odd problem ? I would be very thankful :c
pawn Code:
//on top
#define BOT_1_NICKNAME "SnB"
#define BOT_1_REALNAME "Smash 'n burn bot"
#define BOT_1_USERNAME "SnB Bot"
#define IRC_SERVER "irc.exp-gaming.net"
#define IRC_PORT 6667
#define MAX_BOTS 1
new botIDs[MAX_BOTS], groupID;
//ongamemodeinit:
print("--------------------");
printf("Connecting ircbot to %s:%d - Nickname: %s, %s, %s...",IRC_SERVER, IRC_PORT, BOT_1_NICKNAME, BOT_1_REALNAME, BOT_1_USERNAME);
botIDs[0] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_1_NICKNAME, BOT_1_REALNAME, BOT_1_USERNAME);
printf("Setting int data for botid %d ...",botIDs[0]);
IRC_SetIntData(botIDs[0], E_IRC_CONNECT_DELAY, 5);
printf("Creating group ...");
groupID = IRC_CreateGroup();
printf("Group created: %d",groupID);
print("--------------------");
Quote:
[17:55:30] -------------------- [17:55:30] Connecting ircbot to irc.exp-gaming.net:6667 - Nickname: SnB, Smash 'n burn bot, SnB Bot... [17:55:30] Setting int data for botid 1 ... [17:55:30] Creating group ... [17:55:30] Group created: 1 [17:55:30] -------------------- |
Can anyone fix this odd problem ? I would be very thankful :c