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