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

	<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>2010-02-22T23:40:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Luminous]]></name></author>
		<updated>2010-02-22T23:40:26-04:00</updated>

		<published>2010-02-22T23:40:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92206#p92206</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92206#p92206"/>
		<title type="html"><![CDATA[I need help... cannot figure this out...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92206#p92206"><![CDATA[
I ended up figuring it out last night. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> Had to change a few things, but it works now. Thanks for your help, appreciated.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11101">Luminous</a> — Mon Feb 22, 2010 11:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-02-22T12:52:38-04:00</updated>

		<published>2010-02-22T12:52:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92203#p92203</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92203#p92203"/>
		<title type="html"><![CDATA[I need help... cannot figure this out...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92203#p92203"><![CDATA[
Well, almost...<br>If you check closely, you'll see I use a slightly different commandline for the maskhost (in my previous post). It goes something like this:<div class="codebox"><p>Code: </p><pre><code>...[maskhost "$whom![getchanhost $whom chan]"]...</code></pre></div>maskhost expects nick!user@host, while getchanhost only returns the user@host part, the classic one manages without the nick-part (since it's never included in the mask anyway), however, given the setting of masktype, User's version needs the nick-part aswell...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Feb 22, 2010 12:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Luminous]]></name></author>
		<updated>2010-02-21T21:52:43-04:00</updated>

		<published>2010-02-21T21:52:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92196#p92196</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92196#p92196"/>
		<title type="html"><![CDATA[I need help... cannot figure this out...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92196#p92196"><![CDATA[
I'm using his original one with my script:<br><div class="codebox"><p>Code: </p><pre><code># Setting:set maskhostDefaultType 0# The proc:proc maskhost [list name [list type $maskhostDefaultType]] {   if {[scan $name {%[^!]!%[^@]@%s} nick user host]!=3} {      error "Usage: maskhost &lt;nick!user@host&gt; \[type\]"   }   if [string match {[3489]} $type] {      if [string match {*[0-9]} $host] {         set host [join [lrange [split $host .] 0 2] .].*      } elseif {[string match *.*.* $host]} {         set host *.[join [lrange [split $host .] end-1 end] .]      }   }   if [string match {[1368]} $type] {      set user *[string trimleft $user ~]   } elseif {[string match {[2479]} $type]} {      set user *   }   if [string match {[01234]} $type] {      set nick *   }   set name $nick!$user@$host </code></pre></div>Is this really necessary and is it the right one? I reloaded both scripts(separated them into two different files), and I got a new error: Tcl error [user_reason]: Usage: maskhost &lt;nick!user@host&gt; [type]<br>So.. does that mean... that I need to do: MODE $chan +b [maskhost $whom! 0]?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11101">Luminous</a> — Sun Feb 21, 2010 9:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-02-21T21:16:21-04:00</updated>

		<published>2010-02-21T21:16:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92194#p92194</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92194#p92194"/>
		<title type="html"><![CDATA[I need help... cannot figure this out...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92194#p92194"><![CDATA[
Hmm... there is no other lrange command within the user_reason proc.. There is one within the maskhost proc posted by User in that other thread.<br><br>Do you think you could paste the whole script you've currently got, just to make sure no typos made it in there or such?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Feb 21, 2010 9:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Luminous]]></name></author>
		<updated>2010-02-21T20:55:28-04:00</updated>

		<published>2010-02-21T20:55:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92193#p92193</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92193#p92193"/>
		<title type="html"><![CDATA[I need help... cannot figure this out...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92193#p92193"><![CDATA[
It looks the same as my code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11101">Luminous</a> — Sun Feb 21, 2010 8:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-02-21T19:10:09-04:00</updated>

		<published>2010-02-21T19:10:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92192#p92192</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92192#p92192"/>
		<title type="html"><![CDATA[I need help... cannot figure this out...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92192#p92192"><![CDATA[
Hmm...<br>Posted code looks proper. Please doublecheck the "set reason" line.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Feb 21, 2010 7:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Luminous]]></name></author>
		<updated>2010-02-21T22:49:35-04:00</updated>

		<published>2010-02-21T19:07:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92191#p92191</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92191#p92191"/>
		<title type="html"><![CDATA[I need help... cannot figure this out...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92191#p92191"><![CDATA[
Okay, I made a few tweaks and now I get this error: <br> Tcl error [user_reason]: wrong # args: should be "lrange list first last"<br><div class="codebox"><p>Code: </p><pre><code>bind pub o|o !kb user_reason proc user_reason {nick host hand chan text} {  set list [split $text]  set whom [lindex $list 0]  set reason [join [lrange $list 1 end]]    if {$whom == ""} {       putserv "PRIVMSG $chan :You must specify a nick to kickban."    } elseif {![onchan $whom $chan]} {       putserv "PRIVMSG $chan :$whom is not here."    } else {       putserv "MODE $chan +b [maskhost [getchanhost $whom $chan] 0]"    if {$reason == ""} {       puthelp "KICK $chan $whom :Requested by $nick."    } else {       puthelp "KICK $chan $whom :$reason"    }  }}</code></pre></div>Did away with the if {$hand !=} { part.. for now at least.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11101">Luminous</a> — Sun Feb 21, 2010 7:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-02-21T17:28:40-04:00</updated>

		<published>2010-02-21T17:28:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92190#p92190</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92190#p92190"/>
		<title type="html"><![CDATA[I need help... cannot figure this out...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92190#p92190"><![CDATA[
Actually, it's not in that line. The error you recieve is a tcl error, not an error reported from the irc server. I'd rather look at either onchan or getchanhost - most likely the parameters got mixed up in one of those commands.<br><br>Now that I look closer, that's a very prominent difference between the kick_user and kickban procs - the order of the arguments for onchan. Proper syntax is "onchan &lt;target&gt; [channel]", so make sure you've got something along these lines in your code...<div class="codebox"><p>Code: </p><pre><code>...} elseif {![onchan $whom $chan]} {...</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Feb 21, 2010 5:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Luminous]]></name></author>
		<updated>2010-02-21T17:16:13-04:00</updated>

		<published>2010-02-21T17:16:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92189#p92189</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92189#p92189"/>
		<title type="html"><![CDATA[I need help... cannot figure this out...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92189#p92189"><![CDATA[
Matter of fact, I do: <br><br>[04:42:30] Tcl error [kickban]: illegal channel: Testeee<br><br>"Testeee" was the nick I was testing it on. So the problem should be in this line: <br><div class="codebox"><p>Code: </p><pre><code>putserv "MODE $chan +b [maskhost $whom 0]"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11101">Luminous</a> — Sun Feb 21, 2010 5:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-02-21T13:03:49-04:00</updated>

		<published>2010-02-21T13:03:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92188#p92188</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92188#p92188"/>
		<title type="html"><![CDATA[I need help... cannot figure this out...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92188#p92188"><![CDATA[
Do you get any error messages in your logs or dcc console?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Feb 21, 2010 1:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Luminous]]></name></author>
		<updated>2010-02-20T23:08:38-04:00</updated>

		<published>2010-02-20T23:08:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92184#p92184</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92184#p92184"/>
		<title type="html"><![CDATA[I need help... cannot figure this out...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92184#p92184"><![CDATA[
Well, so much for that theory... lol<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11101">Luminous</a> — Sat Feb 20, 2010 11:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Luminous]]></name></author>
		<updated>2010-02-20T21:05:59-04:00</updated>

		<published>2010-02-20T21:05:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92183#p92183</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92183#p92183"/>
		<title type="html"><![CDATA[I need help... cannot figure this out...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92183#p92183"><![CDATA[
Maybe it's just not going past onchan?<br><br>What does work is the "You don't have permission" message if you are not $hand. The rest of it doesn't. I could try taking out onchan completely. Its really not necessary in this case... my $hand isn't going to use this command in silliness.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11101">Luminous</a> — Sat Feb 20, 2010 9:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-02-20T20:40:13-04:00</updated>

		<published>2010-02-20T20:40:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92181#p92181</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92181#p92181"/>
		<title type="html"><![CDATA[I need help... cannot figure this out...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92181#p92181"><![CDATA[
Could you elaborate "messing it up"?<br>IE what works, what does not work, what does not work as intended, what is the intended behaviour, what is the actual behavior, etc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Feb 20, 2010 8:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Luminous]]></name></author>
		<updated>2010-02-20T20:09:18-04:00</updated>

		<published>2010-02-20T20:09:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92180#p92180</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92180#p92180"/>
		<title type="html"><![CDATA[I need help... cannot figure this out...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92180#p92180"><![CDATA[
Ah, okay.. yeah, that 0 is how I managed to do the ban before I believe. Well, I have it all plugged it but it still doesn't work... guess I'm either going to have to rethink this or simplify it somehow. I am thinking the onchan is maybe messing it up, but that works fine in !kick, so I don't get what the difference is, lol.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11101">Luminous</a> — Sat Feb 20, 2010 8:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-02-20T19:55:09-04:00</updated>

		<published>2010-02-20T19:55:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92179#p92179</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92179#p92179"/>
		<title type="html"><![CDATA[I need help... cannot figure this out...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92179#p92179"><![CDATA[
yep, or [maskhost $whom 0] for type 0 regardless of the maskhostDefaultType setting<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Feb 20, 2010 7:55 pm</p><hr />
]]></content>
	</entry>
	</feed>
