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

	<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>2002-11-04T01:39:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[EEggy]]></name></author>
		<updated>2002-11-04T01:39:24-04:00</updated>

		<published>2002-11-04T01:39:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12774#p12774</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12774#p12774"/>
		<title type="html"><![CDATA[need help with ident ban tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12774#p12774"><![CDATA[
once again, thank you so much.<br>regards<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1962">EEggy</a> — Mon Nov 04, 2002 1:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2002-11-03T17:33:52-04:00</updated>

		<published>2002-11-03T17:33:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12764#p12764</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12764#p12764"/>
		<title type="html"><![CDATA[need help with ident ban tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12764#p12764"><![CDATA[
Eeggy, it is a bit cumbersome to point out errors in your code. Additionally, the test you added on the flags, tests the flags of the user who typed the ".identban" and not of the $target.<br><br>I don't want to force you in any direction, but let me make a suggestion:<br><br>1. write 3 procedures.<br><br>2. The first and most important procedure is something like shown below. At the ..... locations you can invent the required code.<br><div class="codebox"><p>Code: </p><pre><code>proc identban { nick chan text } {     # Split the text in a list ([split])   .....   # Originally there was a [scan] line here but many eggdrop    # scripters only use split/lindex/lrange stuff.   # Determine the length of the list ([llength])   # and put in variable "listcount"   .....   # no text given? (listcount == 0)   ..... { return "No target given." }   # get target from the list ([lindex])   .....   # target was given, target is on channel? ([onchan])   ..... { return "$target is not on $chan" }   # target is known and has flags? ([matchattr])   set targethand [nick2hand $target $chan]   if {.....} {      return "Can't identban: $nick ($targethand) has good flags."    }   # target is on channel and has no flags, construct the reason   if { $listcount == 1 } {       set reason "bad ident..."   } else {      set reason [lrange $textlist 1 end]   }   set date [clock format [clock seconds] -format "%b %d"]    set reason "$date $nick: $reason"   # set the identban (?? copied from eeggy's code ??)   set uhost [getchanhost $target $chan]    set ident [string trimleft [lindex [split $uhost "@"] 0] "~"]    newchanban $chan *!*$ident@* $::botnick $reason 120    # return succes   return "Added identban on *!*$ident@* ($reason)"}</code></pre></div>3. The public proc is something like:<br><div class="codebox"><p>Code: </p><pre><code>bind pub o|o .identban pub_identban proc pub_identban {nick host hand chan text} {    puthelp "NOTICE $nick :[identban $nick $chan $text]"   return 1 } </code></pre></div>4. And the DCC proc is something like:<br><div class="codebox"><p>Code: </p><pre><code>bind dcc o|o identban dcc_identbanproc dcc_identban {hand idx text} {    # extract channel name    set chan [lindex [console $idx] 0]    putidx $idx [identban $hand $chan $text]    return 1 } </code></pre></div>5. Of course you can also stick with your code. But do read, write and test for 2 days anything you can come up with. Use putlog statements to follow what is going on. Scream at your computer when your bot crashes. And if after 2 days, it still doesn't work, scream at this forum and post how far you got.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Sun Nov 03, 2002 5:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[EEggy]]></name></author>
		<updated>2002-11-03T17:10:37-04:00</updated>

		<published>2002-11-03T17:10:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12762#p12762</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12762#p12762"/>
		<title type="html"><![CDATA[need help with ident ban tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12762#p12762"><![CDATA[
egghead:Thanks again for the detail reply, appreciate it<br><br>so i come up with these codes, but now i don't get any error, even restarted the bot, but no luck.... i put a check if person is "mnob"...<br>plus i have tried my best to follow your advise and your kind suggestions..., now i am checking target before reason...but don't know how to i check the last part u have suggested..<br><blockquote class="uncited"><div>Since your procedure is an identban, I can see a reason for setting a ban like "*!*$ident@". This is appearantly what you are after. But suppose your nuhost is like eeggy!<a href="mailto:eeggy@host.com">eeggy@host.com</a>. The only thing I have to do is come online as egghead!~<a href="mailto:y@eggheadshost.com">y@eggheadshost.com</a>, bug you a while and get a .identban egghead. The bot will set a ban like *!*y@*. <br><br>And, your script also doesnt test for who gets banned. The bot will happily set bans on itself, its owner, its master anyone when requested </div></blockquote>thank again, n sorry for being the pain<br>regards<br> <br> <br>proc p_identban {nick host hand chan arg} { <br>  set target [lindex [split $arg] 0] <br>  <br>  if {![onchan $target $chan]} {<br>        puthelp "NOTICE $nick :$target is not on $chan."<br>        return 0<br>      }<br><br>  if {[matchattr $hand mnob|mno $chan]} {<br>       return 0<br>     }<br> <br>  set date [clock format [clock seconds] -format "%b %d"] <br>  if {[lindex [split $arg] 1] != ""} { <br>       set reason "$date $nick: [lrange [split $arg] 1 end]" <br>  } else { <br>       set reason "$date $nick: bad ident." <br>     } <br> <br>  set uhost [getchanhost $target $chan] <br>  set ident [string trimleft [lindex [split $uhost "@"] 0] "~"] <br>  newchanban $chan *!*$ident@* $::botnick $reason 120 <br>  return 1 <br>  <br>} <br><br>bind pub o|o .ib p_identban <br><br>proc dcc_identban {hand idx arg} {<br>  set chan [lindex [console $idx] 0]<br>  set uhost $hand!$hand@* <br>  return [p_identban $hand $uhost $hand $chan $arg] <br>   <br>}<br>bind dcc o|o ib dcc_identban<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1962">EEggy</a> — Sun Nov 03, 2002 5:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2002-11-03T16:08:59-04:00</updated>

		<published>2002-11-03T16:08:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12760#p12760</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12760#p12760"/>
		<title type="html"><![CDATA[need help with ident ban tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12760#p12760"><![CDATA[
<blockquote class="uncited"><div>In "return [p_identban $target $uhost $hand $chan $arg]" you change $target to $hand.<br><br>oh u mean in return procedure , i change $target to $hand, i did that, but same thing.<br><br>thanks<br>regards</div></blockquote>So did you:<br><br>1. locate the line  [p_identban $target $uhost $hand $chan $arg]?<br><br>2. in that line, change $target to $hand?<br><br>3. restart the bot?<br><br>The script you present has some other odd things in it. In the procedure  proc dcc_identban, you extract an uhost like: "set uhost [getchanhost $target $chan]". This uhost you then send to the procedure p_identban. Why do that?<br><br>The p_identban requires 5 arguments:<br>1. The nick typing ".identban"<br>2. The user@host of the nick typing the ".identban" (not of the one being banned).<br>3. The handle of the nick typing ".identban". There must be handle since the binding flags are "o|o"<br>4. The channel where nick typed ".identban". There must be a channel, since the binding is a PUB binding.<br>5. The text the nick typed after ".identban".<br><br>So, all arguments of the p_identban procedure pertain to the nick typing the command, and not to the target that is going to be banned. <br>Subsequently, when calling the p_identban procedure from the partyline, all the arguments you give with that call must pertain to the person typing .identban on the partyline. So, you'll have to come up with 5 arguments:<br><br>1. nick??? There is no nick, since the user typed it from the partyline. Either you see if that user is on one of the channels the bot is monitoring using [hand2nick], or you just use the handle.<br><br>2. host??? In principle it is possible to retrieve the host of the user typing it from the partyline, but it is not used. Either you retrieve it from the DCC information or you set it to something like $hand!$hand@*. Why did you set it to the uhost of the target?<br><br>3. handle. This one you have, since the DCC connection gives a handle.<br><br>4. channel. The channel you indeed can retrieve from the console information.<br><br>5. text?!? As the 5th argument you can indeed use the text the user typed in the partyline. The p_identban will retrieve the target and the banreason from it.<br><div class="codebox"><p>Code: </p><pre><code>proc dcc_identban {hand idx arg} {    set chan [lindex [console $idx] 0]    set uhost $hand!$hand@*   return [p_identban $hand $uhost $hand $chan $arg] }</code></pre></div>Now the weird part comes here. You call the procedure p_identban from the partyline. Anything you want to return to that user, MUST be returned to the $idx! <br>But instead, if something goes wrong you do: "puthelp "NOTICE $nick :$target is not on $chan." This assumes that the person using the partyline is also on irc, on the channel and using the same nick as his/her handle. In fact your return values are 0 and 1. So a user types an identban from the partyline and gets as a result a "0". ???? <br><br>Another weird thing is, is that in the p_identban procedure, you first construct a reason using [date], [clock] etc.... and after that you are going to check if the victim is on the channel. Why first constructing the reason and then find out the $target is not on the channel?<br><br>Since your procedure is an identban, I can see a reason for setting a ban like "*!*$ident@". This is appearantly what you are after. But suppose your nuhost is like eeggy!<a href="mailto:eeggy@host.com">eeggy@host.com</a>. The only thing I have to do is come online as egghead!~<a href="mailto:y@eggheadshost.com">y@eggheadshost.com</a>, bug you a while and get a .identban egghead. The bot will set a ban like *!*y@*.<br><br>And, your script also doesnt test for who gets banned. The bot will happily set bans on itself, its owner, its master anyone when requested.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Sun Nov 03, 2002 4:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[EEggy]]></name></author>
		<updated>2002-11-03T15:14:11-04:00</updated>

		<published>2002-11-03T15:14:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12758#p12758</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12758#p12758"/>
		<title type="html"><![CDATA[need help with ident ban tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12758#p12758"><![CDATA[
In "return [p_identban $target $uhost $hand $chan $arg]" you change $target to $hand.<br><br>oh u mean in return procedure , i change $target to $hand, i did that, but same thing.<br><br>thanks<br>regards<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1962">EEggy</a> — Sun Nov 03, 2002 3:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[EEggy]]></name></author>
		<updated>2002-11-03T14:34:34-04:00</updated>

		<published>2002-11-03T14:34:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12753#p12753</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12753#p12753"/>
		<title type="html"><![CDATA[need help with ident ban tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12753#p12753"><![CDATA[
Thanks again egghead..but $hand is alredy there...<br>return [p_identban $target $uhost $hand $chan $arg] <br><br>thanks<br>regards<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1962">EEggy</a> — Sun Nov 03, 2002 2:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2002-11-03T14:14:30-04:00</updated>

		<published>2002-11-03T14:14:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12751#p12751</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12751#p12751"/>
		<title type="html"><![CDATA[need help with ident ban tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12751#p12751"><![CDATA[
<blockquote class="uncited"><div>so in proc p_identban {nick host hand chan arg}, should i chnage "nick" to "target"?<br><br>thanks<br>regards</div></blockquote>In "return [p_identban $target $uhost $hand $chan $arg]" you change $target to $hand.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Sun Nov 03, 2002 2:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[EEggy]]></name></author>
		<updated>2002-11-03T14:01:42-04:00</updated>

		<published>2002-11-03T14:01:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12750#p12750</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12750#p12750"/>
		<title type="html"><![CDATA[need help with ident ban tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12750#p12750"><![CDATA[
so in proc p_identban {nick host hand chan arg}, should i chnage "nick" to "target"?<br><br>thanks<br>regards<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1962">EEggy</a> — Sun Nov 03, 2002 2:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[EEggy]]></name></author>
		<updated>2002-11-02T13:21:04-04:00</updated>

		<published>2002-11-02T13:21:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12726#p12726</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12726#p12726"/>
		<title type="html"><![CDATA[need help with ident ban tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12726#p12726"><![CDATA[
thanks egghead, yes i typed .identban test, sorry -  is there anyway to fix it??<br><br>thank you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1962">EEggy</a> — Sat Nov 02, 2002 1:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2002-11-02T04:29:10-04:00</updated>

		<published>2002-11-02T04:29:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12710#p12710</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12710#p12710"/>
		<title type="html"><![CDATA[need help with ident ban tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12710#p12710"><![CDATA[
<blockquote class="uncited"><div>Hi again, it was working fine, but don't know why this happening when i type -&gt; .identban target  in the partyline, its kicksbans ok except in a kick message its shows target nick for example<br>ebot sets mode: +b *!*badident@*<br>*** test was kicked by ebot (banned: Nov 02 test: bad ident...)<br>it suppose to show the person kicked like<br>*** test was kicked by ebot (banned: Nov 02 EEggy: bad ident...)<br><br>[snip]<br><br>proc dcc_identban {hand idx arg} {<br>  set chan [lindex [console $idx] 0]<br>  set target [lindex [split $arg] 0]<br>  set uhost [getchanhost $target $chan]<br>  return  [p_identban $target $uhost $hand $chan $arg] <br> <br>}<br>bind dcc o|o identban dcc_identban</div></blockquote>You didn't type ".identban target" as you said, but you typed ".identban test" on the partyline.<br><br>Now, if you type ".identban test" on the partyline, what is "target" set to in the proc "proc dcc_identban {hand idx arg}"?<br><br>This argument $target is then handed over as the "nick" (!) argument to the procedure "proc p_identban {nick host hand chan arg}".<br><br>And in that proc, $nick is used in constructing the kick reason.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Sat Nov 02, 2002 4:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[EEggy]]></name></author>
		<updated>2002-11-02T04:11:28-04:00</updated>

		<published>2002-11-02T04:11:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12709#p12709</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12709#p12709"/>
		<title type="html"><![CDATA[need help with ident ban tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12709#p12709"><![CDATA[
Hi again, it was working fine, but don't know why this happening when i type -&gt; .identban target  in the partyline, its kicksbans ok except in a kick message its shows target nick for example<br>ebot sets mode: +b *!*badident@*<br>*** test was kicked by ebot (banned: Nov 02 test: bad ident...)<br>it suppose to show the person kicked like<br>*** test was kicked by ebot (banned: Nov 02 EEggy: bad ident...)<br><br>i will really appreciate for your help.<br>thanks<br>regards<br><br><br>proc p_identban {nick host hand chan arg} { <br>  set target [lindex [split $arg] 0] <br>  set date [clock format [clock seconds] -format "%b %d"] <br>  if {[lindex [split $arg] 1] != ""} { <br>       set reason "$date $nick: [lrange [split $arg] 1 end]" <br>  } else { <br>       set reason "$date $nick: bad ident..." <br>     } <br><br>  if {![onchan $target $chan]} {<br>        puthelp "NOTICE $nick :$target is not on $chan."<br>        return 0<br>      }<br>  set uhost [getchanhost $target $chan] <br>  set ident [string trimleft [lindex [split $uhost "@"] 0] "~"] <br>  newchanban $chan *!*$ident@* $::botnick $reason 120 <br>  return 1 <br>  <br>} <br><br>bind pub o|o .identban p_identban <br><br>proc dcc_identban {hand idx arg} {<br>  set chan [lindex [console $idx] 0]<br>  set target [lindex [split $arg] 0]<br>  set uhost [getchanhost $target $chan]<br>  return  [p_identban $target $uhost $hand $chan $arg] <br> <br>}<br>bind dcc o|o identban dcc_identban<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1962">EEggy</a> — Sat Nov 02, 2002 4:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2002-10-04T02:17:14-04:00</updated>

		<published>2002-10-04T02:17:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11696#p11696</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11696#p11696"/>
		<title type="html"><![CDATA[need help with ident ban tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11696#p11696"><![CDATA[
<blockquote class="uncited"><div>proc dcc_identban {handle idx arg} { <br>    here instead of <br>set nick [hand2nick $handle] <br>set host [getchanhost $nick]  &lt;- instead of these i should use the following<br><br>set target [lindex [split $arg] 0] <br>set host [getchanhost $target $chan] <br>set ident [string trimleft [lindex [split $host "@"] 0] "~"] <br></div></blockquote>Yes, that's right. But right after extracting the channel and the target, include an [onchan $target $chan]  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Fri Oct 04, 2002 2:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[EEggy]]></name></author>
		<updated>2002-10-03T18:45:23-04:00</updated>

		<published>2002-10-03T18:45:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11692#p11692</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11692#p11692"/>
		<title type="html"><![CDATA[need help with ident ban tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11692#p11692"><![CDATA[
thanks Egghead, so if i like to use public n partyline, i can do something like this<br><br>proc p_identban {nick uhost hand chan arg} { <br>......<br>.....<br><br>}<br><br>proc dcc_identban {handle idx arg} { <br>    here instead of <br>set nick [hand2nick $handle] <br>set host [getchanhost $nick]  &lt;- instead of these i should use the following<br><br>set target [lindex [split $arg] 0] <br>set host [getchanhost $target $chan] <br>set ident [string trimleft [lindex [split $host "@"] 0] "~"] <br><br>thanks again, and sorry for the pain<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1962">EEggy</a> — Thu Oct 03, 2002 6:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2002-10-03T16:48:56-04:00</updated>

		<published>2002-10-03T16:48:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11686#p11686</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11686#p11686"/>
		<title type="html"><![CDATA[need help with ident ban tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11686#p11686"><![CDATA[
<blockquote class="uncited"><div>Egghead, thank you so much for your kind inputs, suggestions, questions and everything, i have learned a lot. oh yeah bindings were not triggered, but after fixing that line and after cleaning more codes, it worked fine.<br>just one more questions like you had mentioned<br>   <blockquote class="uncited"><div># use hand2nick like this? <br>   # huh? not good! read tcl-commands.doc! <br>   # Note that a partyline user may not be on IRC at all! <br>   # This will make the test "isop" in the proc p_identban fail! <br>   # as well as the puthelps to the nick <br>   set nick [hand2nick $handle] <br><br>   # subsequently not good! <br>   set host [getchanhost $nick] </div></blockquote>so what should i use for dcc command <br>set nick [hand2nick $handle] ??<br>set host [getchanhost $nick] ??</div></blockquote>This part was used in the procedure related to the command from the partyline (DCC). Why would you want to look up the nick and the host of someone on the partyline? Even for logging purposes you already know the handle.<br><br>It is even possible that the person on the partyline is not on IRC. He/she just joined through telnet or joined through normal DCC CHAT and left IRC but kept the partyline open.<br><br>So, these two variables are not needed and can be left out, because the one doing the .ib from the partyline is already known by its handle.<br><br>In the second code you pasted there is even no need for these two variables anymore.<br><br>Note that if you really want to reuse code, it is of course possible to write a mutually used proc that will do the bansetting. Both the public triggered proc and the proc triggered through the partyline, then can call this mutually used proc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Thu Oct 03, 2002 4:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[EEggy]]></name></author>
		<updated>2002-10-03T16:12:53-04:00</updated>

		<published>2002-10-03T16:12:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11682#p11682</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11682#p11682"/>
		<title type="html"><![CDATA[need help with ident ban tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11682#p11682"><![CDATA[
Egghead, thank you so much for your kind inputs, suggestions, questions and everything, i have learned a lot. oh yeah bindings were not triggered, but after fixing that line and after cleaning more codes, it worked fine.<br>just one more questions like you had mentioned<br>   <blockquote class="uncited"><div># use hand2nick like this? <br>   # huh? not good! read tcl-commands.doc! <br>   # Note that a partyline user may not be on IRC at all! <br>   # This will make the test "isop" in the proc p_identban fail! <br>   # as well as the puthelps to the nick <br>   set nick [hand2nick $handle] <br><br>   # subsequently not good! <br>   set host [getchanhost $nick] </div></blockquote> so what should i use for dcc command, i mean best choice for these<br>set nick [hand2nick $handle] ??<br>set host [getchanhost $nick] ??<br><br><br>thanks again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1962">EEggy</a> — Thu Oct 03, 2002 4:12 pm</p><hr />
]]></content>
	</entry>
	</feed>
