Fixed one IRC module crash when trying to send messages when disconnected.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12174 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
9b8b53b7cf
commit
127d1feaab
@ -159,9 +159,9 @@ int irc_keepalive_timer(int tid, unsigned int tick, int id, int data)
|
|||||||
void irc_send(char *buf)
|
void irc_send(char *buf)
|
||||||
{
|
{
|
||||||
int len;
|
int len;
|
||||||
int fd = irc_si->fd;
|
int fd;
|
||||||
|
|
||||||
if(!irc_si || !session[fd])
|
if(!irc_si || !(fd = irc_si->fd) || !session[fd])
|
||||||
return;
|
return;
|
||||||
|
|
||||||
len = strlen(buf) + 1;
|
len = strlen(buf) + 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user