| View previous topic :: View next topic |
| Author |
Message |
honeybee Halfop
Joined: 01 Jan 2006 Posts: 80
|
Posted: Tue Sep 26, 2006 8:54 am Post subject: umm whats wrong with this? |
|
|
| Quote: | | if { [string equal -nocase [nick2hand $nick] "honeybee"] } { return } |
I'm trying to get the hand by nick2han and then trying to match it with my handle anf if it matches my hanlde then return, but its not working |
|
| Back to top |
|
 |
r0t3n Owner
Joined: 31 May 2005 Posts: 507 Location: UK
|
Posted: Tue Sep 26, 2006 9:07 am Post subject: |
|
|
| Code: | | if {[string tolower [nick2hand $nick]] == "honeybee"} { return } |
But then i dont see why you are using nick2hand when the proc header will include hand(le) _________________ r0t3n @ #r0t3n @ Quakenet |
|
| Back to top |
|
 |
honeybee Halfop
Joined: 01 Jan 2006 Posts: 80
|
Posted: Tue Sep 26, 2006 9:48 am Post subject: |
|
|
| $hand will probably match only if the joined nick matches my handle i'm adding my host like *!*honeybee@66.25.* to my handle and trying to match the nick2hand with my handle. |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Wed Sep 27, 2006 6:44 am Post subject: |
|
|
| Post your proc instead of giving a single line that tells us nothing. |
|
| Back to top |
|
 |
honeybee Halfop
Joined: 01 Jan 2006 Posts: 80
|
Posted: Wed Sep 27, 2006 6:25 pm Post subject: |
|
|
| Code: | bind join - * proc:check
proc proc:check {nick uhost hand chan} {
if { [string equal -nocase [nick2hand $nick] "honeybee"] } { return }
...........................
} |
rest is working fine except this, i m trying to exempt them if they match my handle. thats all. |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Thu Sep 28, 2006 3:02 pm Post subject: |
|
|
| nick2hand should return the same as $hand, use $hand instead. |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Thu Sep 28, 2006 7:03 pm Post subject: |
|
|
From tcl-commands.doc:
| Quote: | nick2hand <nickname> [channel]
Returns: the handle of a nickname on a channel. If a channel is not
specified, the bot will check all of its channels. If the nick is
not found, "" is returned. If the nick is found but does not have
a handle, "*" is returned. |
_________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Fri Sep 29, 2006 5:24 pm Post subject: Re: umm whats wrong with this? |
|
|
[quote="honeybee"] | Quote: | | if { [string equal -nocase [nick2hand $nick] "honeybee"] } { return } |
if {[nick2hand $nick] == "honeybee"} {return}
is the same as
if {$hand == "honeybee"} {return} |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Fri Sep 29, 2006 7:19 pm Post subject: |
|
|
| metroid wrote: | | nick2hand should return the same as $hand, use $hand instead. |
Take metroid's advice honeybee. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
|