1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 01:03:14 +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
+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);
}
/*