summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorValentin Batz <senneth@irssi.org>2006-01-30 18:48:44 +0000
committervb <vb@dbcabf3a-b0e7-0310-adc4-f8d773084564>2006-01-30 18:48:44 +0000
commit7e585909588d5453fabc0a74b7f1bb25a60ba974 (patch)
tree81ebe37592da7dd577f54111add7ca2f55e9f834 /src/irc
parent0d10e2cc06d952472cc3ce1487180c41762479ca (diff)
downloadirssi-7e585909588d5453fabc0a74b7f1bb25a60ba974.zip
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
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/core/irc-commands.c5
1 files changed, 4 insertions, 1 deletions
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 <data> */