diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-03-24 17:08:56 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-03-24 17:08:56 +0100 |
commit | 50d39969cb1fb6bd46213b185d5ae764cfd60d3a (patch) | |
tree | 8baa58205e504d1bb6b12c5643c9a6bb562981df /src/plugins/irc/irc-protocol.c | |
parent | 837eb82edd3dc954ca2f7e2fb04be41bb807ab97 (diff) | |
download | weechat-50d39969cb1fb6bd46213b185d5ae764cfd60d3a.zip |
irc: fix some styles
Diffstat (limited to 'src/plugins/irc/irc-protocol.c')
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 177d945e0..59d93339b 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -1010,7 +1010,9 @@ IRC_PROTOCOL_CALLBACK(kick) for (ptr_modelist = ptr_channel->modelists; ptr_modelist; ptr_modelist = ptr_modelist->next_modelist) + { ptr_modelist->state = IRC_MODELIST_STATE_MODIFIED; + } /* read option "autorejoin" in server */ rejoin = IRC_SERVER_OPTION_BOOLEAN(server, IRC_SERVER_OPTION_AUTOREJOIN); @@ -1129,7 +1131,9 @@ IRC_PROTOCOL_CALLBACK(kill) for (ptr_modelist = ptr_channel->modelists; ptr_modelist; ptr_modelist = ptr_modelist->next_modelist) + { ptr_modelist->state = IRC_MODELIST_STATE_MODIFIED; + } irc_bar_item_update_channel (); } @@ -1771,7 +1775,9 @@ IRC_PROTOCOL_CALLBACK(part) for (ptr_modelist = ptr_channel->modelists; ptr_modelist; ptr_modelist = ptr_modelist->next_modelist) + { ptr_modelist->state = IRC_MODELIST_STATE_MODIFIED; + } /* cycling ? => rejoin channel immediately */ if (ptr_channel->cycle) @@ -3906,7 +3912,8 @@ IRC_PROTOCOL_CALLBACK(346) ptr_channel->buffer : server->buffer; ptr_modelist = irc_modelist_search (ptr_channel, 'I'); - if (ptr_modelist) { + if (ptr_modelist) + { /* start receiving new list */ if (ptr_modelist->state != IRC_MODELIST_STATE_RECEIVING) { @@ -4065,7 +4072,8 @@ IRC_PROTOCOL_CALLBACK(348) ptr_channel->buffer : server->buffer; ptr_modelist = irc_modelist_search (ptr_channel, 'e'); - if (ptr_modelist) { + if (ptr_modelist) + { /* start receiving new list */ if (ptr_modelist->state != IRC_MODELIST_STATE_RECEIVING) { @@ -4857,7 +4865,8 @@ IRC_PROTOCOL_CALLBACK(367) ptr_channel->buffer : server->buffer; ptr_modelist = irc_modelist_search (ptr_channel, 'b'); - if (ptr_modelist) { + if (ptr_modelist) + { /* start receiving new list */ if (ptr_modelist->state != IRC_MODELIST_STATE_RECEIVING) { @@ -5317,7 +5326,8 @@ IRC_PROTOCOL_CALLBACK(728) ptr_channel->buffer : server->buffer; ptr_modelist = irc_modelist_search (ptr_channel, argv[4][0]); - if (ptr_modelist) { + if (ptr_modelist) + { /* start receiving new list */ if (ptr_modelist->state != IRC_MODELIST_STATE_RECEIVING) { |