diff options
-rw-r--r-- | src/map/irc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/irc.c b/src/map/irc.c index 9b1a48c5f..88ada1311 100644 --- a/src/map/irc.c +++ b/src/map/irc.c @@ -159,9 +159,9 @@ int irc_keepalive_timer(int tid, unsigned int tick, int id, int data) void irc_send(char *buf) { int len; - int fd = irc_si->fd; + int fd; - if(!irc_si || !session[fd]) + if(!irc_si || !(fd = irc_si->fd) || !session[fd]) return; len = strlen(buf) + 1; |