diff options
author | Timo Sirainen <cras@irssi.org> | 2001-11-19 13:14:37 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-11-19 13:14:37 +0000 |
commit | ee708c1469132ceed3b1c0707c7620de19281fd2 (patch) | |
tree | b1c392a20d6fbe0b498398fc926d753477c5b8bd /src | |
parent | cf0b863f3969c4cf8c9e09f51cf10dc5bc03cc86 (diff) | |
download | irssi-ee708c1469132ceed3b1c0707c7620de19281fd2.zip |
-botcmd isn't now sent to channels when /UPGRADEing.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2078 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/core/channel-rec.h | 1 | ||||
-rw-r--r-- | src/core/channels.c | 3 | ||||
-rw-r--r-- | src/irc/core/irc-session.c | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/src/core/channel-rec.h b/src/core/channel-rec.h index 2ff6a536..f3ec5f8d 100644 --- a/src/core/channel-rec.h +++ b/src/core/channel-rec.h @@ -22,6 +22,7 @@ unsigned int synced:1; /* Channel synced - all queries done */ unsigned int joined:1; /* Have we even received JOIN event for this channel? */ unsigned int left:1; /* You just left the channel */ unsigned int kicked:1; /* You just got kicked */ +unsigned int session_rejoin:1; /* This channel was joined with /UPGRADE */ unsigned int destroying:1; /* Return the information needed to call SERVER_REC->channels_join() for diff --git a/src/core/channels.c b/src/core/channels.c index 8dd63ab7..6add0b82 100644 --- a/src/core/channels.c +++ b/src/core/channels.c @@ -199,6 +199,9 @@ void channel_send_autocommands(CHANNEL_REC *channel) g_return_if_fail(IS_CHANNEL(channel)); + if (channel->session_rejoin) + return; + rec = channel_setup_find(channel->name, channel->server->connrec->chatnet); if (rec == NULL || rec->autosendcmd == NULL || !*rec->autosendcmd) return; diff --git a/src/irc/core/irc-session.c b/src/irc/core/irc-session.c index 03b774ec..b4589871 100644 --- a/src/irc/core/irc-session.c +++ b/src/irc/core/irc-session.c @@ -72,6 +72,7 @@ static void sig_connected(IRC_SERVER_REC *server) for (tmp = server->channels; tmp != NULL; tmp = tmp->next) { CHANNEL_REC *rec = tmp->data; + rec->session_rejoin = TRUE; signal_emit("event join", 4, server, rec->name, server->nick, server->userhost); irc_send_cmdv(server, "TOPIC %s", rec->name); |