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

	<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>2005-07-16T06:51:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-07-16T06:51:24-04:00</updated>

		<published>2005-07-16T06:51:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52577#p52577</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52577#p52577"/>
		<title type="html"><![CDATA[commands2.9.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52577#p52577"><![CDATA[
By the way if you still want todo it, you will need to replace:<br><div class="codebox"><p>Code: </p><pre><code>#this:pushmode $chan +b "*!*@[scan [getchanhost $knick $chan] %*\[^@\]@%s]"#with this:pushmode $chan +b "$knick![lindex [split [getchanhost $knick $chan] @] 0]@*"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat Jul 16, 2005 6:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-07-15T09:54:01-04:00</updated>

		<published>2005-07-15T09:54:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52523#p52523</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52523#p52523"/>
		<title type="html"><![CDATA[commands2.9.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52523#p52523"><![CDATA[
Download <a href="http://hub.nexushells.net/~Fz/fzcommands3.0.zip" class="postlink">version 3.0</a>. You can choose what bantype to ban in this version. It should be in the tcl archive soon.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Jul 15, 2005 9:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pig]]></name></author>
		<updated>2005-07-15T09:42:58-04:00</updated>

		<published>2005-07-15T09:42:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52521#p52521</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52521#p52521"/>
		<title type="html"><![CDATA[commands2.9.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52521#p52521"><![CDATA[
Any help would be most appreciated.<br><br>Can anyone tell me what part of this code i need to change and to what in order for the bot to ban a nick and its ident only instead of the whole host ban that it is currently doing?<br><br>"bankick" {<br>   if {![check:auth $nick $hand]} { return 0 }<br>   if {![botisop $chan]} {<br>    puthelp "NOTICE $nick :$fzcom(logo): I'm not oped on $chan."<br>    return 0<br>   }<br>   if {[lindex [split $arg] 1] == ""} {<br>    puthelp "NOTICE $nick :$fzcom(logo): SYNTAX: $fzcom(trigger)bankick &lt;nick1/ban1,nick2/ban1,..&gt; \[reason\] \[bantime\]."<br>    return 0<br>   }<br>   set knicks [split [lindex [split $arg] 1] ,]<br>   if {[llength [lrange [split $arg] 2 end]] == 1} {<br>    if {[string is integer [lindex [split $arg] end]]} {<br>     set kreason "$fzcom(logo): Requested by $nick."<br>     set btime "[lindex [split $arg] end]"<br>    } else {<br>     set kreason "$fzcom(logo): ($nick) [join [lrange [split $arg] 2 end]]"<br>     set btime "$fzcom(btime)"<br>    }<br>   } elseif {[llength [lrange [split $arg] 2 end]] &gt; 1} {<br>    if {[string is integer [lindex [split $arg] end]]} {<br>     set kreason "$fzcom(logo): ($nick) [join [lrange [split $arg] 2 end-1]]"<br>     set btime "[lindex [split $arg] end]"<br>    } else {<br>     set kreason "$fzcom(logo): ($nick) [join [lrange [split $arg] 2 end]]"<br>     set btime "$fzcom(btime)"<br>    }<br>   } else {<br>    set kreason "$fzcom(logo): Requested by $nick."<br>    set btime "$fzcom(btime)"<br>   }<br>   foreach knick $knicks {<br>    if {[string match -nocase *!*@* $knick]} {<br>     if {![string match -nocase $knick $botname]} {<br>      foreach kuser [chanlist $chan] {<br>       if {[string match -nocase $knick $kuser![getchanhost $kuser $chan]]} {<br>        if {![matchattr [nick2hand $kuser] mo|mo $chan]} {<br>         pushmode $chan +b $knick<br>         putquick "KICK $chan $kuser :$kreason"<br>         lappend thebanked($knick) $kuser<br>        } {<br>         puthelp "NOTICE $nick :$fzcom(logo): I will not bankick a master/owner ($kuser matching $knick)"<br>        }<br>       }<br>      }<br>      if {![info exists thebanked]} {<br>       puthelp "NOTICE $nick :$fzcom(logo): There are no nicks matching $knick on $chan."<br>      } {<br>       if {[lsearch -exact [array names thebanked] $knick] == -1} {<br>        puthelp "NOTICE $nick :$fzcom(logo): There are no nicks matching $knick on $chan."<br>       }<br>      }<br>      flushmode $chan<br>     } {<br>      puthelp "NOTICE $nick :$fzcom(logo): Can't outsmart me, I will not bankick myself"<br>     }<br>    } {<br>     if {[onchan $knick $chan]} {<br>      if {![isbotnick $knick] &amp;&amp; ![matchattr [nick2hand $knick] mo|mo $chan]} {<br>       pushmode $chan +b "*!*@[scan [getchanhost $knick $chan] %*\[^@\]@%s]"<br>       putquick "KICK $chan $knick :$kreason"<br>       timer $btime [list pushmode $chan -b "*!*@[scan [getchanhost $knick $chan] %*\[^@\]@%s]"]<br>       lappend bankicked $knick<br>      } else {<br>       puthelp "NOTICE $nick :$fzcom(logo): Can't outsmart me, no bankicking a master."<br>      }<br>     } else {<br>      puthelp "NOTICE $nick :$fzcom(logo): $knick is not on $chan."<br>     }<br>    }<br>   }<br>   if {[info exists bankicked]} {<br>    foreach wrbankicked [wordwrap [join $bankicked ,] 70 ,] {<br>     puthelp "NOTICE $nick :$fzcom(logo): Bankicked $wrbankicked from $chan."<br>    }<br>   }<br>   if {[array exists thebanked]} {<br>    foreach banked [array names thebanked] {<br>     foreach wrbanked [wordwrap [join $thebanked($banked) ,] 70 ,] {<br>      puthelp "NOTICE $nick :$fzcom(logo): Bankicked $wrbanked matching $banked on $chan."<br>     }<br>    }<br>   }<br>   flushmode $chan<br>   return 0<br>  }<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6452">pig</a> — Fri Jul 15, 2005 9:42 am</p><hr />
]]></content>
	</entry>
	</feed>
