1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

/QUOTE and /RAWQUOTE shouldn't work until connect() to server is finished.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2165 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-11-29 19:19:29 +00:00 committed by cras
parent b40901efba
commit 53b4ad6c58

View File

@ -535,7 +535,7 @@ static void cmd_quote(const char *data, IRC_SERVER_REC *server)
{ {
if (server != NULL && !IS_IRC_SERVER(server)) if (server != NULL && !IS_IRC_SERVER(server))
return; return;
if (server == NULL) if (server == NULL || server->connect_time == 0)
cmd_return_error(CMDERR_NOT_CONNECTED); cmd_return_error(CMDERR_NOT_CONNECTED);
irc_send_cmd(server, data); irc_send_cmd(server, data);
@ -546,7 +546,7 @@ static void cmd_rawquote(const char *data, IRC_SERVER_REC *server)
{ {
if (server != NULL && !IS_IRC_SERVER(server)) if (server != NULL && !IS_IRC_SERVER(server))
return; return;
if (server == NULL) if (server == NULL || server->connect_time == 0)
cmd_return_error(CMDERR_NOT_CONNECTED); cmd_return_error(CMDERR_NOT_CONNECTED);
irc_send_cmd_full(server, data, FALSE, FALSE, TRUE); irc_send_cmd_full(server, data, FALSE, FALSE, TRUE);
@ -901,6 +901,7 @@ void irc_commands_init(void)
settings_add_int("misc", "knockout_time", 300); settings_add_int("misc", "knockout_time", 300);
settings_add_str("misc", "wall_format", "[Wall/$0] $1-"); settings_add_str("misc", "wall_format", "[Wall/$0] $1-");
settings_add_bool("misc", "kick_first_on_kickban", FALSE); settings_add_bool("misc", "kick_first_on_kickban", FALSE);
settings_add_bool("misc", "join_auto_chans_on_invite", FALSE);
knockout_tag = g_timeout_add(KNOCKOUT_TIMECHECK, (GSourceFunc) knockout_timeout, NULL); knockout_tag = g_timeout_add(KNOCKOUT_TIMECHECK, (GSourceFunc) knockout_timeout, NULL);