<?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/8372" />

	<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>2004-10-01T09:16:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-01T09:16:28-04:00</updated>

		<published>2004-10-01T09:16:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41481#p41481</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41481#p41481"/>
		<title type="html"><![CDATA[force ban list refresh]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41481#p41481"><![CDATA[
<blockquote class="uncited"><div>As for getting the channel banlist you would have to use:<br>(Taken from eggdrop/doc/tcl-commands.doc)</div></blockquote>He wants to update the internal banlist, not fetch its current (empty) contents.<div class="codebox"><p>Code: </p><pre><code>putserv "MODE $chan +b"</code></pre></div>should work<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Oct 01, 2004 9:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[b_raven]]></name></author>
		<updated>2004-10-01T09:08:50-04:00</updated>

		<published>2004-10-01T09:08:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41480#p41480</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41480#p41480"/>
		<title type="html"><![CDATA[force ban list refresh]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41480#p41480"><![CDATA[
WEEE! The putfast identing worked. didn't think about that.<br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5218">b_raven</a> — Fri Oct 01, 2004 9:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-01T08:53:13-04:00</updated>

		<published>2004-10-01T08:53:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41479#p41479</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41479#p41479"/>
		<title type="html"><![CDATA[force ban list refresh]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41479#p41479"><![CDATA[
So do you want your bot to identify before it joins that channel?<br>This script should trigger before the bot joins any channel, meaning its nick would be identified before it joins any channel.<br><div class="codebox"><p>Code: </p><pre><code>#Set the password of the botsnickset nickpass "irule"bind evnt - init-server nickserv:identify proc nickserv:identify {type} { global nickpass  putquick "PRIVMSG nickserv :IDENTIFY $nickpass" -next  return 0}</code></pre></div>As for getting the channel banlist you would have to use:<br>(Taken from eggdrop/doc/tcl-commands.doc)<br><blockquote class="uncited"><div>chanbans &lt;channel&gt;<br><br>Returns: a list of the current bans on the channel. Each element is a sublist of the form {&lt;ban&gt; &lt;bywho&gt; &lt;age&gt;}. age is seconds from the bot's point of view.<br><br>Module: irc</div></blockquote>It would be something like this:<br><div class="codebox"><p>Code: </p><pre><code>bind mode - "+o" get:banlistproc get:banlist {nick uhost hand chan mode target} { global botnick  if {([string equal "ChanServ" $nick]) &amp;&amp; ([string equal "+o" $mode]) &amp;&amp; ([isbotnick $target])} {  chanbans $chan; return 0  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Oct 01, 2004 8:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[b_raven]]></name></author>
		<updated>2004-10-01T08:42:03-04:00</updated>

		<published>2004-10-01T08:42:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41478#p41478</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41478#p41478"/>
		<title type="html"><![CDATA[force ban list refresh]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41478#p41478"><![CDATA[
I have a slight problem on the server my bot is on.<br>The server will only give op to the bot either after it has identified for a nick, or when it sends a chanserv password. And it will only give the ban list to ops.<br><br>The problem is that the bot enters the channel before it identifies, (and then identifies for the channel op), meaning it doesn't get the ban list from the channel.<br><br>I need some way to make it get the ban list from the server when it gets op.<br><br>I have a script that triggers correctly on the mode change, but I can't seem to find the command to make it get the ban list. I've tried "resetchan" but that doesn't seem to work.<br><br>Any help would be apreciated.<br><br>Current script follows:<br><br>bind mode - "* +o" get_access_list<br><br>proc get_access_list {nick uhost handle channel mode victim} {<br> if {[string match -nocase "Bester" $victim]} {<br>  resetchan $channel<br> }<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5218">b_raven</a> — Fri Oct 01, 2004 8:42 am</p><hr />
]]></content>
	</entry>
	</feed>
