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

@@ -421,7 +421,7 @@ int i;
}
for (i = 2; i < argc; i++)
m_s3cat(&buffer, space, argv[i]);
send_text(argv[1], buffer, !strcmp(argv[0], "notice")?"NOTICE":"PRIVMSG", 1, 1);
send_text(argv[1], buffer, (!strcmp(argv[0], "notice") ? STXT_NOTICE : 0) | STXT_LOG);
new_free(&buffer);
return TCL_OK;
}
@@ -438,7 +438,7 @@ int i;
}
for (i = 1; i < argc; i++)
m_s3cat(&buffer, space, argv[i]);
send_text(get_current_channel_by_refnum(0), buffer, "PRIVMSG", 1, 1);
send_text(get_current_channel_by_refnum(0), buffer, STXT_LOG);
new_free(&buffer);
return TCL_OK;
}