From 7e585909588d5453fabc0a74b7f1bb25a60ba974 Mon Sep 17 00:00:00 2001 From: Valentin Batz Date: Mon, 30 Jan 2006 18:48:44 +0000 Subject: [PATCH] Only send QUOTE immediately when server didn't yet sent the 001 event git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4230 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/irc-commands.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/irc/core/irc-commands.c b/src/irc/core/irc-commands.c index 23381bf8..5657cb50 100644 --- a/src/irc/core/irc-commands.c +++ b/src/irc/core/irc-commands.c @@ -577,7 +577,10 @@ static void cmd_quote(const char *data, IRC_SERVER_REC *server) if (server == NULL || server->connect_time == 0) cmd_return_error(CMDERR_NOT_CONNECTED); - irc_send_cmd_now(server, data); + if (!server->connected) + irc_send_cmd_now(server, data); + else + irc_send_cmd(server, data); } /* SYNTAX: RAWQUOTE */