meh
This commit is contained in:
parent
68a65cffda
commit
4245aca400
@ -7,8 +7,8 @@
|
||||
|
||||
extern syntax_setter_t syntax_functions[];
|
||||
|
||||
irc_session_t * session;
|
||||
irc_callbacks_t callbacks;
|
||||
static irc_session_t * session;
|
||||
static irc_callbacks_t callbacks;
|
||||
|
||||
void ircmsg(const char * const message) {
|
||||
irc_cmd_msg(session, channel, message);
|
||||
@ -25,6 +25,7 @@ language_t translate_language(const char * const language) {
|
||||
}
|
||||
|
||||
// XXX: msg ChanServ IDENTIFY?
|
||||
static
|
||||
void event_connect(irc_session_t * session,
|
||||
const char * event,
|
||||
const char * origin,
|
||||
@ -43,6 +44,7 @@ void event_connect(irc_session_t * session,
|
||||
free(buffer);
|
||||
}
|
||||
|
||||
static
|
||||
void event_privmsg(irc_session_t * session,
|
||||
const char * event,
|
||||
const char * origin,
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
const char * const username = PROGRAM_NAME;
|
||||
const char * const password = "";
|
||||
#define DEFAULT_LANGUAGE C
|
||||
#define LOG_FILE stdout
|
||||
|
||||
#define CONFIG_INC
|
||||
#endif
|
||||
|
@ -12,7 +12,7 @@ typedef enum {
|
||||
ADA,
|
||||
} language_t;
|
||||
|
||||
language_t language = ADA;
|
||||
language_t language = DEFAULT_LANGUAGE;
|
||||
|
||||
typedef void (*syntax_setter_t)(void);
|
||||
|
||||
@ -52,7 +52,7 @@ signed main(int argc, char * * argv) {
|
||||
goto USAGE_ERROR;
|
||||
}
|
||||
|
||||
log_file = stdout;
|
||||
log_file = LOG_FILE;
|
||||
|
||||
syntax_functions[language]();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user