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:
@@ -11,7 +11,7 @@ extern char *sent_nick;
|
||||
extern char *sent_body;
|
||||
extern char *recv_nick;
|
||||
|
||||
void BX_send_text (const char *, const char *, char *, int, int);
|
||||
void BX_send_text (const char *, const char *, unsigned);
|
||||
void eval_inputlist (char *, char *);
|
||||
int BX_parse_command (char *, int, char *);
|
||||
void BX_parse_line (const char *, char *, const char *, int, int, int);
|
||||
@@ -27,7 +27,7 @@ extern char *recv_nick;
|
||||
void destroy_call_stack (void);
|
||||
void unwind_stack (void);
|
||||
void wind_stack (char *);
|
||||
void redirect_text (int, const char *, const char *, char *, int, int);
|
||||
void redirect_text (int, const char *, const char *, unsigned);
|
||||
int command_exist (char *);
|
||||
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* if we change the table below, we change this module number to the
|
||||
* current date (YYYYMMDDxx where xx is a serial number).
|
||||
*/
|
||||
#define MODULE_VERSION 2017071001UL
|
||||
#define MODULE_VERSION 2017071002UL
|
||||
|
||||
#include "struct.h"
|
||||
|
||||
|
||||
@@ -254,7 +254,7 @@ extern Function_ptr *global;
|
||||
#define prepare_command (*(ChannelList *(*)(int *, char *, int))global[PREPARE_COMMAND])
|
||||
#define convert_output_format (*(char *(*)(const char *, const char *, ...))global[CONVERT_OUTPUT_FORMAT])
|
||||
#define userage (*(void (*)(char *, char *))global[USERAGE])
|
||||
#define send_text (*(void (*)(const char *, const char *, char *, int , int ))global[SEND_TEXT])
|
||||
#define send_text (*(void (*)(const char *, const char *, unsigned))global[SEND_TEXT])
|
||||
/* this needs to be worked out. it's passed in the IrcVariable * to _Init */
|
||||
#define load (*(void (*)(char *, char *, char *, char *))global[FUNC_LOAD])
|
||||
#define update_clock (*(char *(*)(int ))global[UPDATE_CLOCK])
|
||||
|
||||
Reference in New Issue
Block a user