irctk

libircclient binding for scripts
git clone https://a3nm.net/git/irctk/
Log | Files | Refs | README

commit 826d65c4facc8e869b8492701cb1d000c9ccd1bc
parent 73a782a900137ea92fe8a185c5e0edc22d424390
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sat, 21 Feb 2015 12:51:42 +0100

support /quote

Diffstat:
README | 1+
irctk.c | 2++
2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/README b/README @@ -255,6 +255,7 @@ The supported commands are: /me MSG (/me message) /notice MSG (say as a notice) /oper USER [PASS] (obtain operator privileges) + /quote COMMAND (send raw command to IRC server) /say MSG (escape) / MSG (escape) /notice MSG (like /say but use NOTICE) diff --git a/irctk.c b/irctk.c @@ -1160,6 +1160,8 @@ int do_cmd_msg(irc_session_t *s, char *chan, char *line) pw_pos = get_password(chan); } else if ((arg = MATCH_CMD(line, "topic"))) { rsl = irc_cmd_topic(s, chan, arg); + } else if ((arg = MATCH_CMD(line, "quote"))) { + rsl = irc_send_raw(s, "%s", arg); } else if ((arg = MATCH_CMD0(line, "quit"))) { int ok = 1; if (*arg == ' ') {