summaryrefslogtreecommitdiff
path: root/src/irc/notifylist
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2017-02-11 00:07:03 -0300
committerdequis <dx@dxzone.com.ar>2017-02-11 00:07:03 -0300
commit15736ba5ab63d62bfbf8c7907835e5530ba58311 (patch)
tree2dcbad1b4550c6640ba15128feeaec1ae56ece20 /src/irc/notifylist
parent653c7fb05a67841acd4fcc12ce1fee3be9955453 (diff)
downloadirssi-15736ba5ab63d62bfbf8c7907835e5530ba58311.zip
notify-ison: Don't send ison before the connection is done
Diffstat (limited to 'src/irc/notifylist')
-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++;