commit 08617d35f06b557a7e98f67d5ca0cabbdf767207
parent b722ffb30700ee4677c035ab3b09bb4e1aa6d703
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Thu, 4 Aug 2011 12:46:37 -0400
add /topic
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/irctk.c b/irctk.c
@@ -445,6 +445,9 @@ int do_cmd_msg(irc_session_t *s, const char* chan, const char* line)
debug("join %s", line+6);
rsl = irc_cmd_join(s, line + 6, NULL);
}
+ } else if (strstr (line + 1, "topic ") == line + 1) {
+ debug("topic %s", line+6);
+ rsl = irc_cmd_topic(s, chan, line + 6);
} else if (strstr (line + 1, "quit") == line + 1) {
/* TODO notify main thread that it is over */
if (!line[5] || line[5] == '\n')