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.
Old posts that have not been replied to for several years.
stere0
Halfop
Posts: 47 Joined: Sun Sep 23, 2001 8:00 pm
Location: Brazil
Post
by stere0 » Tue Apr 16, 2002 10:02 pm
proc pxi2h:findchan {chan} {
global pxi2h_chan
foreach ele [array names pxi2h_chan] {
if {[string tolower $ele] == [string tolower $chan]} { return $ele }
}
}
[]s
Petersen
Owner
Posts: 685 Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK
Post
by Petersen » Tue Apr 16, 2002 10:14 pm
takes a channame as an argument, and searches through its array to see if an indexname (ie the name contained within the brackets of an array element) matches that chan, and returns the indexname if one does.