summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/core/irc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/core/irc.c b/src/irc/core/irc.c
index 636bb0df..8ec7c4af 100644
--- a/src/irc/core/irc.c
+++ b/src/irc/core/irc.c
@@ -86,8 +86,7 @@ void irc_send_cmd_full(IRC_SERVER_REC *server, const char *cmd,
if (send_now) {
irc_server_send_data(server, cmd, len);
- return;
- }
+ } else {
/* add to queue */
if (immediate) {
@@ -101,6 +100,7 @@ void irc_send_cmd_full(IRC_SERVER_REC *server, const char *cmd,
server->cmdqueue = g_slist_append(server->cmdqueue,
server->redirect_next);
}
+ }
server->redirect_next = NULL;
g_free(params);
g_free(recoded_line);