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:
@@ -74,7 +74,7 @@ static char *Pkga_newctcp (CtcpEntryDll *dll, char *from, char *to, char *args)
|
||||
{
|
||||
char putbuf[500];
|
||||
sprintf(putbuf, "%c%s %s%c", CTCP_DELIM_CHAR, dll->name, my_ctime(time(NULL)), CTCP_DELIM_CHAR);
|
||||
send_text(from, putbuf, "NOTICE", 0, 0);
|
||||
send_text(from, putbuf, STXT_NOTICE | STXT_QUIET);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ static char *Pkga_ctcppage (CtcpEntryDll *dll, char *from, char *to, char *args)
|
||||
{
|
||||
char putbuf[500];
|
||||
sprintf(putbuf, "%c%s %s%c", CTCP_DELIM_CHAR, dll->name, my_ctime(time(NULL)), CTCP_DELIM_CHAR);
|
||||
send_text(from, putbuf, "NOTICE", 0, 0);
|
||||
send_text(from, putbuf, STXT_NOTICE | STXT_QUIET);
|
||||
put_it(" %s is paging you", from);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -280,7 +280,7 @@ BUILT_IN_DLL(xmms_cmd)
|
||||
sprintf(putbuf, "%cACTION %s%c",
|
||||
CTCP_DELIM_CHAR, message,
|
||||
CTCP_DELIM_CHAR);
|
||||
send_text(target, putbuf, "PRIVMSG", 0, 0);
|
||||
send_text(target, putbuf, STXT_QUIET);
|
||||
|
||||
if (do_hook(SEND_ACTION_LIST, "%s %s", target, message))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user