This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

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