diff options
author | Timo Sirainen <cras@irssi.org> | 2001-11-15 18:37:33 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-11-15 18:37:33 +0000 |
commit | 5563a8f2030455c2ce4b85582ef27034180be38e (patch) | |
tree | 06aa1d3423d219e4decf14319910e6d79936ce85 /src | |
parent | 0b4db7b17acc53913f10ceabced2c21c1d96f5e7 (diff) | |
download | irssi-5563a8f2030455c2ce4b85582ef27034180be38e.zip |
/QUOTE and /RAWQUOTE should work as soon as the socket is connected.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2020 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/core/irc-commands.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/irc/core/irc-commands.c b/src/irc/core/irc-commands.c index a7622fd6..fd8d600e 100644 --- a/src/irc/core/irc-commands.c +++ b/src/irc/core/irc-commands.c @@ -523,7 +523,10 @@ static void cmd_sconnect(const char *data, IRC_SERVER_REC *server) /* SYNTAX: QUOTE <data> */ static void cmd_quote(const char *data, IRC_SERVER_REC *server) { - CMD_IRC_SERVER(server); + if (server != NULL && !IS_IRC_SERVER(server)) + return; + if (server == NULL) + cmd_return_error(CMDERR_NOT_CONNECTED); irc_send_cmd(server, data); } @@ -531,7 +534,10 @@ static void cmd_quote(const char *data, IRC_SERVER_REC *server) /* SYNTAX: RAWQUOTE <data> */ static void cmd_rawquote(const char *data, IRC_SERVER_REC *server) { - CMD_IRC_SERVER(server); + if (server != NULL && !IS_IRC_SERVER(server)) + return; + if (server == NULL) + cmd_return_error(CMDERR_NOT_CONNECTED); irc_send_cmd_full(server, data, FALSE, FALSE, TRUE); } |