1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26:39 +02:00

irc: add "count" in hashtable returned by "irc_message_split"

This commit is contained in:
Sebastien Helleu
2011-08-26 13:23:56 +02:00
parent d040fe1b88
commit 832a089d3d
16 changed files with 34 additions and 29 deletions
+3 -1
View File
@@ -618,7 +618,9 @@ irc_info_init ()
/* TRANSLATORS: please do not translate key names (enclosed by quotes) */
N_("\"msg1\" ... \"msgN\": messages to send "
"(without final \"\\r\\n\"), "
"\"args1\" ... \"argsN\": arguments of messages"),
"\"args1\" ... \"argsN\": arguments of "
"messages, "
"\"count\": number of messages"),
&irc_info_get_info_hashtable_cb, NULL);
/* infolist hooks */
+4 -2
View File
@@ -347,8 +347,8 @@ void
irc_message_split_add (struct t_hashtable *hashtable, int number,
const char *message, const char *arguments)
{
char key[32];
char key[32], value[32];
if (message)
{
snprintf (key, sizeof (key), "msg%d", number);
@@ -372,6 +372,8 @@ irc_message_split_add (struct t_hashtable *hashtable, int number,
key, arguments);
}
}
snprintf (value, sizeof (value), "%d", number);
weechat_hashtable_set (hashtable, "count", value);
}
/*