Issue information

Issue ID
#559
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Dec 7, 2007 12:22
Last Post
Hercules Elf Bot
Dec 7, 2007 12:22
Confirmation
N/A

Hercules Elf Bot - Dec 7, 2007 12:22

Originally posted by [b]Ai4rei[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=559

When turning it on, it only connects to the IRCd, but doesn't even login (as I could see while debugging). After about 15-30 seconds the connection times out, and the MapServer crashes.

MapServer:
CODE
[Status]: Loading maps (using db/map_cache.dat as map cache)...
[Info]: Successfully loaded '668' maps.
[Info]: (IRC) Connecting to x.x.x.x... [Status]: Connecting to x.x.x.x:6667
ok
[Status]: Done reading packet database from 'packet_db.txt'. Using default packe
t version: 22.
...  // Normal Output (Loading DBs and such)
[Info]: From login-server: receiving information of '17' GM accounts.
[Status]: Map sending complete. Map Server is now online.
[Info]: Received Fame List of '30' characters.
[Info]: Session #1544 timed out  // IRC Connection
[Error]: Server received crash signal! Attempting to save all online characters!


IRC Config:
CODE
//Turn the IRC Bot 'on' or 'off'
use_irc: on

//IRC Server Address
irc_server: x.x.x.x

//IRC Server Port
irc_port: 6667

//Autojoin channel when kicked (on=1,off=0)
irc_autojoin: 1

//IRC Channel
irc_channel: #kionline

//IRC Channel password (set if required)
//irc_channel_pass:

//IRC Trade Channel
irc_trade_channel: #

//IRC Nickname
irc_nick: KIO_BOT

//IRC Password ("0" for no pass)
irc_pass: 0


Note: The server runs ok without IRC activated.

The message:
CODE
[Info]: (IRC) Connecting to x.x.x.x... [Status]: Connecting to x.x.x.x:6667
ok


Comes from:
CODE
int irc_connect_timer(int tid, unsigned int tick, int id, int data)
{
[...]
    //Ok, this ShowInfo and printf are a little ugly, but they are meant to
    //debug just how long the code freezes here. [Skotlex]
    ShowInfo("(IRC) Connecting to %s... ", irc_ip_str);
    irc_fd = make_connection(irc_ip,irc_port);


Because make_connection does a output as well. More I'm unable to figure out.

Edit:
The only thing the IRCd recieves is:
CODE
PRIVMSG KIO_BOT :

(Meant for keep-alive purposes; 1. PING should be used for that, 2. IRCd's PING/PONG should be enough for this purpose.)
Log-in procedure ([PASS, ]USER, NICK) is not send.

This post has been edited by Ai4rei: Dec 7 2007, 05:55 AM