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

	<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>2003-03-30T10:45:16-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-03-30T10:45:16-04:00</updated>

		<published>2003-03-30T10:45:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18346#p18346</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18346#p18346"/>
		<title type="html"><![CDATA[help with bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18346#p18346"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind mode - * op:modeproc op:mode {nick uhost hand chan mc ban} {  global botnick botname  foreach ban [chanbans $chan] {    set mask [lindex $ban 0]    if {[string match "$mask" "$botname"]} {      putquick "MODE $chan -b $ban"    }  }}</code></pre></div>The eggdrop has it's own buit in mechanism to unban itself if has ops in the channel so there will be needed only the +o bind mode. When he is oped pn channel he will do a compare on each channel bans against it's mask and unban it if matches him.<br><br>Here is another code with binds for '+b' and '+o' if anyone needs it or something..<div class="codebox"><p>Code: </p><pre><code>bind mode - * ch:modesproc ch:modes {nick uhost hand chan mc ban} {  global botnick botname  switch -- $mc {    "+b" {      if {[string match "$ban" "$botname"] &amp;&amp; [botisop $chan]} {        putquick "MODE $chan -b $ban"        return      }    }    +o {      foreach ban [chanbans $chan] {        set mask [lindex $ban 0]        if {[string match "$mask" "$botname"]} {          putquick "MODE $chan -b $ban"        }      }    }  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Mar 30, 2003 10:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-03-30T10:10:39-04:00</updated>

		<published>2003-03-30T10:10:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18341#p18341</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18341#p18341"/>
		<title type="html"><![CDATA[help with bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18341#p18341"><![CDATA[
Or you can use this code:<div class="codebox"><p>Code: </p><pre><code>setudef flag myneedsbind need - * my:needsproc my:needs {channel type} {   global botnick  if {[lsearch -exact [channel info $channel] -myneeds] != -1} { return 0 }  switch -- $type {    "op" {      putserv "PRIVMSG Chanserv :op $channel $botnick"    return 1 }    "unban" {      putserv "PRIVMSG Chanserv :unban $channel $botnick"    return 1 }    "invite" {      putserv "PRIVMSG Chanserv :invite $channel $botnick"    return 1 }    "limit" {      putserv "PRIVMSG Chanserv :invite $channel $botnick"    return 1 }  }}</code></pre></div>Simply copy/paste it in to a tcl file and load it to your bot, then do a .chanset #channel +myneeds where #channel is the channel(s) where you want it to interact with Chanserv.<br><br>Oh, as for weird ban thing.. duno what to say. I've deoped it, then placed a ban on its mask then oped it back. He didn't removed the ban that matches him weird..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Mar 30, 2003 10:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-03-30T09:30:40-04:00</updated>

		<published>2003-03-30T09:30:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18339#p18339</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18339#p18339"/>
		<title type="html"><![CDATA[help with bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18339#p18339"><![CDATA[
laidas,<br><br>I don't know how to do this with a TCL script, but its possible to do using the config file:<br><br>Unfortunatly, i do not use dalnet and so i don't know what sort of commands is used for unbanning, but on KnightNet I use the following in my chan information in the config file:<br><br>channel add #AllNiteCafe {<br>        chanmode "+nt"<br>        idle-kick 0<br>        need-op {<br>                  puthelp "PRIVMSG Tavernserv :op #AllNiteCafe Bot"<br>                }<br>        need-invite {<br>                puthelp "PRIVMSG Tavernserv :invite #AllNiteCafe" }<br>        need-unban {<br>                   puthelp "PRIVMSG Tavernserv :unban #AllNiteCafe"<br> }<br><br>of course, to do this the bot must already be identifyed to nickserv (tell it to in the init-server bit of the conf.  With a slight bit of tailoring with that you should be able to use it.<br><br>Hope this helps you.<br><br>Good Luck.<br><br><br>Karl (EvilPhish)<br><br><br>later on......there are many scripts avaliable for this kind of thing.  check slennox's script archive<p>Statistics: Posted by Guest — Sun Mar 30, 2003 9:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[laidas]]></name></author>
		<updated>2003-03-22T09:17:14-04:00</updated>

		<published>2003-03-22T09:17:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18108#p18108</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18108#p18108"/>
		<title type="html"><![CDATA[help with bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18108#p18108"><![CDATA[
how bot can unban itself ?<br><br>Situation:<blockquote class="uncited"><div>Dalnet IRC server.<br>Bot has 10 access level. Me too <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>My actions:<br>[15:15:27] * msn was kicked by laidas (laidas)<br>[15:15:27] * laidas sets mode: +b *!*@213.226.133.40<br>[15:15:29] -irc2.omnitel.net:@#lamest- ChanServ invited msn into channel #lamest.<br>[15:15:30] * Joins: msn (eggdrop@213.226.133.40)<br>[15:15:30] * ChanServ sets mode: +o msn</div></blockquote>But ban *!*@213.226.133.40 still on chan...<br>how can bot unban itself on chan ?<br><br>Thanx..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1641">laidas</a> — Sat Mar 22, 2003 9:17 am</p><hr />
]]></content>
	</entry>
	</feed>
