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

	<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>2007-07-23T14:19:14-04:00</updated>

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

		<entry>
		<author><name><![CDATA[dr3am3rs]]></name></author>
		<updated>2007-07-23T14:19:14-04:00</updated>

		<published>2007-07-23T14:19:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74690#p74690</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74690#p74690"/>
		<title type="html"><![CDATA[+v can k\ban users in diff # without having access to the #]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74690#p74690"><![CDATA[
Thanks again GUys...<br>Thanks for the lovely help..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9171">dr3am3rs</a> — Mon Jul 23, 2007 2:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-07-23T11:25:53-04:00</updated>

		<published>2007-07-23T11:25:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74686#p74686</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74686#p74686"/>
		<title type="html"><![CDATA[+v can k\ban users in diff # without having access to the #]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74686#p74686"><![CDATA[
<blockquote class="uncited"><div>Just a note, you're using list-commands on $text, which is a user-supplied string, and not a list. Might wanna <a href="http://www.tcl.tk/man/tcl8.4/TclCmd/split.htm" class="postlink">split</a> it first...</div></blockquote>My bad sorry.. fixed and edited it. A small split of $text before using the list indexes to retrieve the user and the kick reason.<br><br>The edited code should work fine now, this would IMHO be nml375's suggestion for nicks and kick reasons with special characters.  <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=4875">awyeah</a> — Mon Jul 23, 2007 11:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-07-23T06:09:36-04:00</updated>

		<published>2007-07-23T06:09:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74680#p74680</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74680#p74680"/>
		<title type="html"><![CDATA[+v can k\ban users in diff # without having access to the #]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74680#p74680"><![CDATA[
Just a note, you're using list-commands on $text, which is a user-supplied string, and not a list. Might wanna <a href="http://www.tcl.tk/man/tcl8.4/TclCmd/split.htm" class="postlink">split</a> it first...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Jul 23, 2007 6:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-07-22T22:37:16-04:00</updated>

		<published>2007-07-22T22:37:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74668#p74668</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74668#p74668"/>
		<title type="html"><![CDATA[+v can k\ban users in diff # without having access to the #]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74668#p74668"><![CDATA[
<blockquote class="uncited"><div>Thanks alot awyeah..<br><br>The script only works for users above voice status from #channel1 to work right?<br>Or it does work for all?<br><br>Thanks Again awyeah..really thanks for the fast respond and time spend...</div></blockquote>I edited the script above for a small bug fix. Make sure you copy it again and use this bug fixed code in your eggdrop now. As for your question, this script only works for people who have "+v" (voice) on their nick.<br><div class="codebox"><p>Code: </p><pre><code>  if {[isvoice $nick $chan2]} {</code></pre></div>And no it does not work for all, only voiced people will be able to use it. So  it can apply that, not even ops or bot masters or the bot owner can use it. <br><br>And to make it more clearer, only voices from channel1 can kick:<br><br>-ops in channel2<br>-voices in channel2<br>=&gt; meaning anyone, with any access on channel2<br>(condition bot is on both channels and is opped on channel2)<br><br>Just coded as you requested from your initial request.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Jul 22, 2007 10:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dr3am3rs]]></name></author>
		<updated>2007-07-22T21:11:50-04:00</updated>

		<published>2007-07-22T21:11:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74664#p74664</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74664#p74664"/>
		<title type="html"><![CDATA[+v can k\ban users in diff # without having access to the #]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74664#p74664"><![CDATA[
Thanks alot awyeah..<br><br>The script only works for users above voice status from #channel1 to work right?<br>Or it does work for all?<br><br>Thanks Again awyeah..really thanks for the fast respond and time spend...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9171">dr3am3rs</a> — Sun Jul 22, 2007 9:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-07-23T11:23:37-04:00</updated>

		<published>2007-07-22T20:56:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74662#p74662</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74662#p74662"/>
		<title type="html"><![CDATA[+v can k\ban users in diff # without having access to the #]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74662#p74662"><![CDATA[
Well I don't see a valid reason to create this type of script in my opinion it is redundant, but anyway here it goes.<br><blockquote class="uncited"><div>On channel1, the voiced user will type:<br><br><strong class="text-strong">!k &lt;nick&gt; &lt;reason&gt;</strong><br><strong class="text-strong">!kick &lt;nick&gt; &lt;reason&gt;</strong><br><br>where, &lt;nick&gt; will be the person to kick on channel2</div></blockquote><div class="codebox"><p>Code: </p><pre><code>#Channel from where users will kick peopleset chan1 "#mychan"#Channel where users will get kickedset chan2 "#yourchan"#############################bind pub - "!k" kick:in:chan2bind pub - "!kick" kick:in:chan2proc kick:in:chan2 {nick uhost hand chan text} { global chan1 chan2 if {![string equal -nocase $chan $chan2]} { return 0 } if {[botonchan $chan1] &amp;&amp; [botonchan $chan2] &amp;&amp; [botisop $chan2]} {  if {[isvoice $nick $chan2]} {   set text [split $text]   set user [lindex $text 0]   set chan1 [string tolower $chan1]   set chan2 [string tolower $chan2]   set reason [lrange $text 1 end]  if {$user != ""} {   if {[onchan $user $chan2]} {    if {$reason == ""} { set reason "Kick requested by $nick on $chan1" }    putserv "KICK $chan2 $user :$reason"   } else {    putserv "PRIVMSG $chan1 :$user is not on $chan2"   }  } else {    putserv "PRIVMSG $chan1 :Usage: !kick &lt;nick on $chan2&gt; &lt;reason&gt;"   }  } }}</code></pre></div><span style="color:red"><em class="text-italics">NOTE: Edited for a small bug fix</em>..</span><br><span style="color:blue"><em class="text-italics">Fixed $text from a string to a list..</em></span><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Jul 22, 2007 8:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dr3am3rs]]></name></author>
		<updated>2007-07-22T19:57:33-04:00</updated>

		<published>2007-07-22T19:57:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74658#p74658</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74658#p74658"/>
		<title type="html"><![CDATA[+v can k\ban users in diff # without having access to the #]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74658#p74658"><![CDATA[
I'll really appreciate if some1 would spare some time to make this script.. <br><br>+v users in #ChannelA can kick users in #ChannelB <br><br>In details, <br><br>Voiced users in #ChannelA can kick users in #ChannelB with or without being in #channelB <br>Voiced users in #ChannelA dont have any flag or access in #ChannelB <br>If possible,if not<br>Tell me nearest possible match or i need to link this two channel..<br>Please teach me....<br><br>Please make this tcl possible ohh,Wise scripters....<br><br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9171">dr3am3rs</a> — Sun Jul 22, 2007 7:57 pm</p><hr />
]]></content>
	</entry>
	</feed>
