Change send_text() to combine command, hook and log arguments into one set of flags

This function is exported to modules, so it requires updating a few modules and rolling the module table version.
This commit is contained in:
Kevin Easton
2017-07-09 00:08:04 +10:00
parent 496bbc8b74
commit bb616e0626
15 changed files with 50 additions and 48 deletions

View File

@@ -3248,12 +3248,12 @@ void gui_paste(char *args)
if(current_window->query_nick)
{
if (do_hook(PASTE_LIST, "%s %s", current_window->query_nick, bit))
send_text(current_window->query_nick, bit, NULL, 1, 0);
send_text(current_window->query_nick, bit, 0);
}
else
{
if (do_hook(PASTE_LIST, "%s %s", channel, bit))
send_text(channel, bit, NULL, 1, 0);
send_text(channel, bit, 0);
}
} else
{
@@ -3316,12 +3316,12 @@ void gui_paste(char *args)
if(current_window->query_nick)
{
if (do_hook(PASTE_LIST, "%s %s", current_window->query_nick, smart))
send_text(current_window->query_nick, smart, NULL, 1, 0);
send_text(current_window->query_nick, smart, 0);
}
else
{
if (do_hook(PASTE_LIST, "%s %s", channel, smart))
send_text(channel, smart, NULL, 1, 0);
send_text(channel, smart, 0);
}
}
else