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:
@@ -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 */
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user