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

@@ -2832,13 +2832,13 @@ void gtk_main_paste (int refnum)
{
if(*current_window->query_nick && bit && *bit)
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(channel && *channel && bit && *bit)
if (do_hook(PASTE_LIST, "%s %s", channel, bit))
send_text(channel, bit, NULL, 1, 0);
send_text(channel, bit, 0);
}
} else
{
@@ -2905,13 +2905,13 @@ void gtk_main_paste (int refnum)
{
if(*current_window->query_nick && *smart)
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(channel && *channel && *smart)
if (do_hook(PASTE_LIST, "%s %s", channel, smart))
send_text(channel, smart, NULL, 1, 0);
send_text(channel, smart, 0);
}
}
else