summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2017-02-27 14:45:41 +0100
committerGitHub <noreply@github.com>2017-02-27 14:45:41 +0100
commitfa1a0562916c2c8ef8f7087a59795973bf0927ac (patch)
treeeff40bafb35dfcc0a8b0318eff74964c87d1b4f9 /src
parent540639e0faee2dac9ff60fcf5e2ab0334a1ad5d9 (diff)
parent15736ba5ab63d62bfbf8c7907835e5530ba58311 (diff)
downloadirssi-fa1a0562916c2c8ef8f7087a59795973bf0927ac.zip
Merge pull request #647 from dequis/fix-early-ison-take-2
notify-ison: Don't send ison before the connection is done
Diffstat (limited to 'src')
-rw-r--r--src/irc/notifylist/notify-ison.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/irc/notifylist/notify-ison.c b/src/irc/notifylist/notify-ison.c
index f9ca7b37..8a8865cc 100644
--- a/src/irc/notifylist/notify-ison.c
+++ b/src/irc/notifylist/notify-ison.c
@@ -80,6 +80,10 @@ static void ison_send(IRC_SERVER_REC *server, GString *cmd)
{
MODULE_SERVER_REC *mserver;
+ if (!server->connected) {
+ return;
+ }
+
mserver = MODULE_DATA(server);
mserver->ison_count++;