check if nick is in channel

Help for those learning Tcl or writing their own scripts.
Post Reply
s
skull

check if nick is in channel

Post by skull »

Hello,
before executing a command I would need to check if the selected nickname is in channel.

How can I do that?
Thanks

P.S. I searched the whole forum but couldn't find anything useful (weird).
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
s
simo
Revered One
Posts: 1086
Joined: Sun Mar 22, 2015 2:41 pm

Post by simo »

if {![onchan $targetnick $chan]} {
Nick is not on channel so Do something here
} else { nick is on channel so Do something else here }
s
skull

Post by skull »

Thanks both and sorry but I wasn't notified by the forum.
Post Reply