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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user