mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04: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:
parent
b40901efba
commit
53b4ad6c58
@ -535,7 +535,7 @@ static void cmd_quote(const char *data, IRC_SERVER_REC *server)
|
||||
{
|
||||
if (server != NULL && !IS_IRC_SERVER(server))
|
||||
return;
|
||||
if (server == NULL)
|
||||
if (server == NULL || server->connect_time == 0)
|
||||
cmd_return_error(CMDERR_NOT_CONNECTED);
|
||||
|
||||
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))
|
||||
return;
|
||||
if (server == NULL)
|
||||
if (server == NULL || server->connect_time == 0)
|
||||
cmd_return_error(CMDERR_NOT_CONNECTED);
|
||||
|
||||
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_str("misc", "wall_format", "[Wall/$0] $1-");
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user