Sugestion on on other regsub thing

Old posts that have not been replied to for several years.
Locked
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Hi,

I made a bind for a join and then for a raw to extract the channels that user is on and got the folowing things:

set chans [lindex [split $args :] end]
regsub -all "}|{" $chans "" chans

With this I extract from $chans the channels name. Example: @#test #temp

I need a sugestion to make a match if that nick has @ on #test to do a command, if is not @ in there do other command. Anyone? Thx!
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

if {[string index $blah 0] == "@"} {...
Locked