diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-10-26 20:37:03 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-10-26 20:37:03 +0200 |
commit | dfdf42e27b033730178bf8884e2f4a1e6c960791 (patch) | |
tree | 6f7a25f6df49089832aabc6448bd6e527de2ea0e /src/plugins/irc/irc-mode.c | |
parent | 2a83aae85e68a8c7431f372f39131b09fea7bca1 (diff) | |
download | weechat-dfdf42e27b033730178bf8884e2f4a1e6c960791.zip |
core: remove unneeded whitespace
Diffstat (limited to 'src/plugins/irc/irc-mode.c')
-rw-r--r-- | src/plugins/irc/irc-mode.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/plugins/irc/irc-mode.c b/src/plugins/irc/irc-mode.c index 009a4e5e5..86fd13290 100644 --- a/src/plugins/irc/irc-mode.c +++ b/src/plugins/irc/irc-mode.c @@ -46,12 +46,12 @@ irc_mode_channel_set (struct t_irc_server *server, char *pos_args, *str_modes, set_flag, **argv, *pos, *ptr_arg; int modes_count, channel_modes_updated, argc, current_arg; struct t_irc_nick *ptr_nick; - + if (!server || !channel || !modes) return 0; - + channel_modes_updated = 0; - + argc = 0; argv = NULL; pos_args = strchr (modes, ' '); @@ -85,7 +85,7 @@ irc_mode_channel_set (struct t_irc_server *server, pos++; } current_arg = argc - modes_count; - + if (str_modes && str_modes[0]) { set_flag = '+'; @@ -158,14 +158,14 @@ irc_mode_channel_set (struct t_irc_server *server, pos++; } } - + if (str_modes) free (str_modes); if (argv) weechat_string_free_split (argv); - + weechat_bar_item_update ("buffer_name"); - + return channel_modes_updated; } @@ -180,7 +180,7 @@ irc_mode_user_add (struct t_irc_server *server, char mode) str_mode[0] = mode; str_mode[1] = '\0'; - + if (server->nick_modes) { if (!strchr (server->nick_modes, mode)) @@ -218,7 +218,7 @@ irc_mode_user_remove (struct t_irc_server *server, char mode) { char *pos, *nick_modes2; int new_size; - + if (server->nick_modes) { pos = strchr (server->nick_modes, mode); |