mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
irc: Expose more IRC functionality
Now exposing the connection event and raw incoming commands.
This commit is contained in:
4
irc.h
4
irc.h
@@ -53,8 +53,10 @@ struct ircstate {
|
||||
struct timerel reconnect_timeout;
|
||||
};
|
||||
|
||||
/* Callback to register for incoming messages */
|
||||
/* Callbacks to register for incoming messages, events and raw commands */
|
||||
extern void (*irc_privmsg_cb)(struct ircstate *, const struct privmsg *);
|
||||
extern void (*irc_command_cb)(struct ircstate *, const struct irccommand *);
|
||||
extern void (*irc_connect_cb)(struct ircstate *);
|
||||
extern void (*irc_disconnect_cb)(struct ircstate *);
|
||||
|
||||
/* Send messages to IRC */
|
||||
|
||||
Reference in New Issue
Block a user