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:
@@ -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