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

	<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-05-11T08:22:14-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Rusher2K]]></name></author>
		<updated>2003-05-11T08:22:14-04:00</updated>

		<published>2003-05-11T08:22:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20056#p20056</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20056#p20056"/>
		<title type="html"><![CDATA[Why doesnt it works !!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20056#p20056"><![CDATA[
I hade edit Qban tcl to make a Qop tcl <br>I cann add peoble in list but teh bot didnt op !!!!<br>the people whrere in teh list when i make .qban list büt white {{nick}}<br><div class="codebox"><p>Code: </p><pre><code>set qchan "#emotion-public"# path to data fileset qfile "./qban.data"### binds ###bind join - "$qchan *!*@*" q:joinbind dcc o qop dcc:qban### CODE - DON'T change yadda yadda ###set qver "1.0"proc dcc:qban {hand idx args} {    set args [lindex $args 0]    set mode [lindex $args 0]    if {$mode == "add"} {q:ban:add $idx [lindex $args 1]    }    if {$mode == "del"} {q:ban:del $idx [lindex $args 1]    }    if {$mode == "list"} {q:ban:list $idx    }    if {$mode == "help"} {q:help $idx    }    if {$mode == ""} {q:help $idx    }}proc q:ban:list {qidx} {    global qfile    set qlist ""    set openchange [open $qfile r]    while {![eof $openchange]} {set dlinhalt [gets $openchange]        if {$dlinhalt != ""} {    set dlinhalt "$dlinhalt "    set dlinhalt [lrange $dlinhalt 0 end]    set qlist [lappend qlist $dlinhalt]}    }    close $openchange    putidx $qidx "\002QOP::\002 Added qops: \002$qlist\002"}proc q:ban:del {qidx args} {    global qfile    set args [lindex $args 0]    set qwho [lindex $args 0]    set openchange [open $qfile r]    set zahler "0"    set notzahler "0"    while {![eof $openchange]} {set dlinhalt [gets $openchange]        if {$dlinhalt != ""} {    incr zahler +1        set putfile($zahler) "$dlinhalt"    set test [lindex $dlinhalt 0]    if {$test == $qwho} {set notzahler "$zahler"    }}    }    close $openchange    if {$notzahler != "0"} {if ![catch {open $qfile w} filelog] {    for {set i 1} {$i &lt;= $zahler} {incr i 1} {if {$i != $notzahler} {    puts $filelog "$putfile($i)"}    }close $filelogputidx $qidx "\002QOP::\002 Succesfully removed \002$qwho\002 from the qop list"} else {    putlog "\002QOP::\002 ERROR! File not found !!!"}    }}proc q:help {qidx} {    putidx $qidx "\002QOP::\002 .qop add &lt;authname&gt; &lt;-- adds a new auth to ban list"    putidx $qidx "\002QOP::\002 .qop del &lt;authname&gt; &lt;-- removes given auth from the ban list"    putidx $qidx "\002QOP::\002 .qop list &lt;-- shows a list of auths that are banned"    putidx $qidx "\002QOP::\002 .qop \[help\] &lt;-- shows this"}proc q:ban:add {qidx args} {    set args [lindex $args 0]    global qfile    if ![catch {open $qfile a+} filelog] {puts $filelog "$args"close $filelogputidx $qidx "\002QOP::\002 Added \002$args\002 to qop list"    }}proc q:join {nick uhost hand chan} {    global qnick qchann    set qnick "$nick"    set qchann "$chan"    qbind    putserv "whois $nick"}proc raw:q330 {from key arg} {    global qfile qchan qnick qchann qstick qtime qkick    set amessage [string trimleft [join [lrange [split $arg] 2 end]] :]    set amessage [lindex $amessage 3]    set qfiles [open $qfile r]    while {![eof $qfiles]} {set dlinhalt [gets $qfiles]set q_auth [lindex $dlinhalt 0]if {$q_auth == $amessage} {    putlog "\002QOP\002 :: $qnick matched a Q auth qop: $q_auth"    putserv "MODE $qchann +o $qnick "}    }    close $qfiles    qunbind}proc qbind { } {    bind raw - 330 raw:q330}proc qunbind { } {    unbind raw - 330 raw:q330}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3034">Rusher2K</a> — Sun May 11, 2003 8:22 am</p><hr />
]]></content>
	</entry>
	</feed>
