<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/11726" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2006-04-27T07:52:14-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/11726</id>

		<entry>
		<author><name><![CDATA[hakim]]></name></author>
		<updated>2006-04-26T20:30:12-04:00</updated>

		<published>2006-04-26T20:30:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62398#p62398</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62398#p62398"/>
		<title type="html"><![CDATA[Rejoining channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62398#p62398"><![CDATA[
THANK YOU VERY MUCH, KrzychuG!<br>It really worked <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7678">hakim</a> — Wed Apr 26, 2006 8:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2006-04-26T14:22:34-04:00</updated>

		<published>2006-04-26T14:22:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62386#p62386</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62386#p62386"/>
		<title type="html"><![CDATA[Rejoining channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62386#p62386"><![CDATA[
Well, you could force it to join channel right after the ban is removed but i'm not sure how server will react on that kind of flood. <br>To do that you should add one line in src/mod/irc.mod/chan.c got474() function. It's responsible for reacting on "can't join, i'm banned" server reply. You can put there JOIN command what would force bot to try to join and probably once again gave reply like "can't join, i'm banned". After some time and problably right after chanserver will remove ban bot will join channel. New function should look like this:<br><div class="codebox"><p>Code: </p><pre><code>static int got474(char *from, char *msg){  char *chname;  struct chanset_t *chan;  newsplit(&amp;msg);  chname = newsplit(&amp;msg);  /* !channel short names (also referred to as 'description names'   * can be received by skipping over the unique ID.   */  if ((chname[0] == '!') &amp;&amp; (strlen(chname) &gt; CHANNEL_ID_LEN)) {    chname += CHANNEL_ID_LEN;    chname[0] = '!';  }  /* We use dname because name is first set on JOIN and we might not   * have joined the channel yet.   */  chan = findchan_by_dname(chname);  if (chan) {    putlog(LOG_JOIN, chan-&gt;dname, IRC_BANNEDFROMCHAN, chan-&gt;dname);    check_tcl_need(chan-&gt;dname, "unban");    chan = findchan_by_dname(chname);    if (!chan)      return 0;    dprintf(DP_MODE, "JOIN %s\n", chan-&gt;name); /* this one will let bot to try joining once again till if succeed */    if (chan-&gt;need_unban[0])      do_tcl("need-unban", chan-&gt;need_unban);  } else    putlog(LOG_JOIN, chname, IRC_BANNEDFROMCHAN, chname);  return 0;}</code></pre></div>It's a bit twisted and maybe dangerous (bot may be kicked out of server with excees flood message) but may work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3672">KrzychuG</a> — Wed Apr 26, 2006 2:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hakim]]></name></author>
		<updated>2006-04-25T17:04:13-04:00</updated>

		<published>2006-04-25T17:04:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62339#p62339</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62339#p62339"/>
		<title type="html"><![CDATA[Rejoining channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62339#p62339"><![CDATA[
Thanks for info KrzychuG.<br>Now I see that it only pauses for a longer time before rejoining if it's banned (even chanserv removes the ban instantly, preventing it from rejoining) and it rejoins instantly when he's only kicked. Maybe there's some setting concerning bans?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7678">hakim</a> — Tue Apr 25, 2006 5:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2006-04-25T14:36:43-04:00</updated>

		<published>2006-04-25T14:36:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62332#p62332</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62332#p62332"/>
		<title type="html"><![CDATA[Rejoining channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62332#p62332"><![CDATA[
You won't speed it up by modifying source or by doing anything else. There is nothing what could delay rejoin in irc.mod and any other place. You can take a look at src/mod/irc.mod/chan.c gotkick() function if you wish ;)<br><br>The only change to speed it up a little is to change queues system or at least modifying msgrate setting (src/mod/server.mod/server.c).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3672">KrzychuG</a> — Tue Apr 25, 2006 2:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hakim]]></name></author>
		<updated>2006-04-25T13:18:55-04:00</updated>

		<published>2006-04-25T13:18:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62327#p62327</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62327#p62327"/>
		<title type="html"><![CDATA[Rejoining channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62327#p62327"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div><strong class="text-strong">Edit: If I knew, I would have given you a hint were to find it (search keywoard, thread or at least file and function name).</strong></div></blockquote>You can read, right?</div></blockquote>Just look when I've posted the reply and when De Kus edited his post!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7678">hakim</a> — Tue Apr 25, 2006 1:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-04-27T07:52:14-04:00</updated>

		<published>2006-04-24T20:05:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62302#p62302</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62302#p62302"/>
		<title type="html"><![CDATA[Rejoining channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62302#p62302"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Mon Apr 24, 2006 8:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hakim]]></name></author>
		<updated>2006-04-24T07:04:52-04:00</updated>

		<published>2006-04-24T07:04:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62280#p62280</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62280#p62280"/>
		<title type="html"><![CDATA[Rejoining channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62280#p62280"><![CDATA[
<blockquote class="uncited"><div>you would most likely have to change some code in irc.mod.</div></blockquote>Maybe you know what exactly should be changed?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7678">hakim</a> — Mon Apr 24, 2006 7:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-04-24T09:40:39-04:00</updated>

		<published>2006-04-23T13:37:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62265#p62265</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62265#p62265"/>
		<title type="html"><![CDATA[Rejoining channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62265#p62265"><![CDATA[
you would most likely have to change some code in irc.mod.<br><br>Edit: If I knew, I would have given you a hint were to find it (search keywoard, thread or at least file and function name).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Apr 23, 2006 1:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hakim]]></name></author>
		<updated>2006-04-23T13:31:17-04:00</updated>

		<published>2006-04-23T13:31:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62263#p62263</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62263#p62263"/>
		<title type="html"><![CDATA[Rejoining channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62263#p62263"><![CDATA[
Is there any way to change the time which the bot takes to rejoin channel (after it was kicked/banned)?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7678">hakim</a> — Sun Apr 23, 2006 1:31 pm</p><hr />
]]></content>
	</entry>
	</feed>
