diff options
author | Haru <haru@dotalux.com> | 2015-08-09 02:17:43 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-08-15 00:51:41 +0200 |
commit | f8edb93a6a26cd81eeaad0eac23e33da7740c8b4 (patch) | |
tree | e1d6ef1a867613be7d8d0384c93c9767867a91a3 /src/map/irc-bot.c | |
parent | b0210e25675b0b3e950a0ee13ae8652360d84386 (diff) | |
download | hercules-f8edb93a6a26cd81eeaad0eac23e33da7740c8b4.tar.gz hercules-f8edb93a6a26cd81eeaad0eac23e33da7740c8b4.tar.bz2 hercules-f8edb93a6a26cd81eeaad0eac23e33da7740c8b4.tar.xz hercules-f8edb93a6a26cd81eeaad0eac23e33da7740c8b4.zip |
Moved session array into the socket interface
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/irc-bot.c')
-rw-r--r-- | src/map/irc-bot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/irc-bot.c b/src/map/irc-bot.c index 451d224fd..34069f74f 100644 --- a/src/map/irc-bot.c +++ b/src/map/irc-bot.c @@ -42,8 +42,8 @@ int irc_connect_timer(int tid, int64 tick, int id, intptr_t data) { ircbot->last_try = timer->gettick(); if ((ircbot->fd = sockt->make_connection(ircbot->ip, channel->config->irc_server_port, &opt)) > 0) { - session[ircbot->fd]->func_parse = ircbot->parse; - session[ircbot->fd]->flag.server = 1; + sockt->session[ircbot->fd]->func_parse = ircbot->parse; + sockt->session[ircbot->fd]->flag.server = 1; timer->add(timer->gettick() + 3000, ircbot->identify_timer, 0, 0); ircbot->isOn = true; } @@ -114,7 +114,7 @@ struct irc_func* irc_func_search(char* function_name) { int irc_parse(int fd) { char *parse_string = NULL, *str_safe = NULL; - if (session[fd]->flag.eof) { + if (sockt->session[fd]->flag.eof) { sockt->close(fd); ircbot->fd = 0; ircbot->isOn = false; |