mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 00:52:30 +02:00
Irssi crashed if you used "/JOIN" or "/JOIN -invite" without connected
to server. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@662 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
6d4f2b6802
commit
0790ad02f6
1 changed files with 1 additions and 1 deletions
|
|
@ -375,7 +375,7 @@ static void cmd_invitelist(const char *data, IRC_SERVER_REC *server, WI_ITEM_REC
|
||||||
static void cmd_join(const char *data, IRC_SERVER_REC *server)
|
static void cmd_join(const char *data, IRC_SERVER_REC *server)
|
||||||
{
|
{
|
||||||
if ((*data == '\0' || g_strncasecmp(data, "-invite", 7) == 0) &&
|
if ((*data == '\0' || g_strncasecmp(data, "-invite", 7) == 0) &&
|
||||||
server->last_invite == NULL) {
|
server != NULL && server->last_invite == NULL) {
|
||||||
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, IRCTXT_NOT_INVITED);
|
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, IRCTXT_NOT_INVITED);
|
||||||
signal_stop();
|
signal_stop();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue