summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2016-01-17 08:20:14 +0100
committerSébastien Helleu <flashcode@flashtux.org>2016-01-17 08:20:14 +0100
commitb0725c2b9b3f91e0d268cfd2512144e0ac4b21ee (patch)
treed10795c29a00d7ee8bdfd781af6bdfd1998d1383 /src
parenta7695f7201aaf04024da19dae1d98397103e95ee (diff)
downloadweechat-b0725c2b9b3f91e0d268cfd2512144e0ac4b21ee.zip
irc: fix code style
Diffstat (limited to 'src')
-rw-r--r--src/plugins/irc/irc-command.c11
1 files changed, 5 insertions, 6 deletions
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",