From b0725c2b9b3f91e0d268cfd2512144e0ac4b21ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 17 Jan 2016 08:20:14 +0100 Subject: irc: fix code style --- src/plugins/irc/irc-command.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index e42e0ecf5..7a30f596a 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -1393,7 +1393,6 @@ irc_command_ctcp (void *data, struct t_gui_buffer *buffer, int argc, IRC_COMMAND_CHECK_SERVER("ctcp", 1); targets = weechat_string_split (argv[arg_target], ",", 0, 0, &num_targets); - if (!targets) WEECHAT_COMMAND_ERROR; @@ -1405,7 +1404,7 @@ irc_command_ctcp (void *data, struct t_gui_buffer *buffer, int argc, if ((strcmp (ctcp_type, "PING") == 0) && !argv_eol[arg_args]) { - // generate argument for PING if not provided + /* generate argument for PING if not provided */ gettimeofday (&tv, NULL); snprintf (str_time, sizeof (str_time), "%ld %ld", (long)tv.tv_sec, (long)tv.tv_usec); @@ -6252,10 +6251,10 @@ irc_command_init () " target: nick or channel ('*' = current channel)\n" " type: CTCP type (examples: \"version\", \"ping\", ..)\n" "arguments: arguments for CTCP"), - "-server %(irc_servers) %(irc_channel)|%(nicks)" - " action|clientinfo|finger|ping|source|time|userinfo|version" - " || %(irc_channel)|%(nicks)" - " action|clientinfo|finger|ping|source|time|userinfo|version", + "-server %(irc_servers) %(irc_channel)|%(nicks) " + "action|clientinfo|finger|ping|source|time|userinfo|version" + " || %(irc_channel)|%(nicks) " + "action|clientinfo|finger|ping|source|time|userinfo|version", &irc_command_ctcp, NULL); weechat_hook_command ( "cycle", -- cgit v1.2.3