commit 8e2f24dc239e6b552cae446bb101cb2cb0d6ceab
parent 6cb8b7d88f880ecceabf180806493f1b74f72792
Author: Antoine Amarilli <ant.amarilli@free.fr>
Date: Sun, 30 Jan 2011 19:13:07 +0100
join channels before trying to post on them
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/irctk.c b/irctk.c
@@ -45,7 +45,7 @@
#define thread_id_t pthread_t
#define _GNU_SOURCE
-#define INITIAL_RETRY 3
+#define INITIAL_RETRY 15
#define FACTOR_RETRY 2
#define E_SESSION 1
@@ -371,6 +371,10 @@ int do_cmd_msg(irc_session_t *s, const char* chan, const char* line)
/* TODOponey ask the server to notify, if possible */
/* TODO2 find a way to get real host name (part after !) */
+ /* TODO2 only join channels we haven't joined yet */
+ irc_cmd_join (s, chan, 0);
+
+
/* TODO2 provide a means to escape '/' */
if (line[0] == '/' && args.command_to_event) {
if ( strstr (line + 1, "nick ") == line + 1 )