mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 09:02:13 +02:00
-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
This commit is contained in:
parent
cf0b863f39
commit
ee708c1469
3 changed files with 5 additions and 0 deletions
|
|
@ -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 joined:1; /* Have we even received JOIN event for this channel? */
|
||||||
unsigned int left:1; /* You just left the channel */
|
unsigned int left:1; /* You just left the channel */
|
||||||
unsigned int kicked:1; /* You just got kicked */
|
unsigned int kicked:1; /* You just got kicked */
|
||||||
|
unsigned int session_rejoin:1; /* This channel was joined with /UPGRADE */
|
||||||
unsigned int destroying:1;
|
unsigned int destroying:1;
|
||||||
|
|
||||||
/* Return the information needed to call SERVER_REC->channels_join() for
|
/* Return the information needed to call SERVER_REC->channels_join() for
|
||||||
|
|
|
||||||
|
|
@ -199,6 +199,9 @@ void channel_send_autocommands(CHANNEL_REC *channel)
|
||||||
|
|
||||||
g_return_if_fail(IS_CHANNEL(channel));
|
g_return_if_fail(IS_CHANNEL(channel));
|
||||||
|
|
||||||
|
if (channel->session_rejoin)
|
||||||
|
return;
|
||||||
|
|
||||||
rec = channel_setup_find(channel->name, channel->server->connrec->chatnet);
|
rec = channel_setup_find(channel->name, channel->server->connrec->chatnet);
|
||||||
if (rec == NULL || rec->autosendcmd == NULL || !*rec->autosendcmd)
|
if (rec == NULL || rec->autosendcmd == NULL || !*rec->autosendcmd)
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,7 @@ static void sig_connected(IRC_SERVER_REC *server)
|
||||||
for (tmp = server->channels; tmp != NULL; tmp = tmp->next) {
|
for (tmp = server->channels; tmp != NULL; tmp = tmp->next) {
|
||||||
CHANNEL_REC *rec = tmp->data;
|
CHANNEL_REC *rec = tmp->data;
|
||||||
|
|
||||||
|
rec->session_rejoin = TRUE;
|
||||||
signal_emit("event join", 4, server, rec->name,
|
signal_emit("event join", 4, server, rec->name,
|
||||||
server->nick, server->userhost);
|
server->nick, server->userhost);
|
||||||
irc_send_cmdv(server, "TOPIC %s", rec->name);
|
irc_send_cmdv(server, "TOPIC %s", rec->name);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue