1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 19:23:13 +02:00

Add buffer pointer as string in modifier_data for modifier "history_add"

This commit is contained in:
Sebastien Helleu
2010-04-08 16:49:19 +02:00
parent d52f051ec1
commit a6f37da576
4 changed files with 8 additions and 6 deletions
+5 -3
View File
@@ -142,10 +142,12 @@ gui_history_global_add (const char *string)
void
gui_history_add (struct t_gui_buffer *buffer, const char *string)
{
char *string2;
char *string2, str_buffer[128];
snprintf (str_buffer, sizeof (str_buffer),
"0x%lx", (long unsigned int)(buffer));
string2 = hook_modifier_exec (NULL, "history_add", str_buffer, string);
string2 = hook_modifier_exec (NULL, "history_add", NULL, string);
/*
* if message was NOT dropped by modifier, then we add it to buffer and
* global history