diff options
author | Haru <haru@dotalux.com> | 2013-08-05 15:34:53 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2013-08-12 17:14:51 +0200 |
commit | 93d75b858d046022dcb3904476f2dd5071dfc36d (patch) | |
tree | d259b0fa6d913334d7f7b25e78e735852fd7062a /src/map/irc-bot.h | |
parent | d20596083a12a8ab797614121be51d2a914abe58 (diff) | |
download | hercules-93d75b858d046022dcb3904476f2dd5071dfc36d.tar.gz hercules-93d75b858d046022dcb3904476f2dd5071dfc36d.tar.bz2 hercules-93d75b858d046022dcb3904476f2dd5071dfc36d.tar.xz hercules-93d75b858d046022dcb3904476f2dd5071dfc36d.zip |
Added support for JOIN, QUIT, PART, NICK in the IRC bridge
- It'll now show messages such as:
[ #irc ] User IRC.<nick> joined the channel.
[ #irc ] User IRC.<nick> left the channel. [Quit: <quit message>]
[ #irc ] User IRC.<nick> left the channel. [<leave message>]
[ #irc ] User IRC.<old nick> is now known as IRC.<new nick>"
- To disable, comment out the respective entries in irc_bot_init.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/irc-bot.h')
-rw-r--r-- | src/map/irc-bot.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/irc-bot.h b/src/map/irc-bot.h index 0fd84bd5f..0efb0245e 100644 --- a/src/map/irc-bot.h +++ b/src/map/irc-bot.h @@ -52,6 +52,9 @@ struct irc_bot_interface { void (*pong) (int fd, char *cmd, char *source, char *target, char *msg); void (*join) (int fd, char *cmd, char *source, char *target, char *msg); void (*privmsg) (int fd, char *cmd, char *source, char *target, char *msg); + void (*userjoin) (int fd, char *cmd, char *source, char *target, char *msg); + void (*userleave) (int fd, char *cmd, char *source, char *target, char *msg); + void (*usernick) (int fd, char *cmd, char *source, char *target, char *msg); }; struct irc_bot_interface *ircbot; |