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.

get string thing

Old posts that have not been replied to for several years.
Locked
l
loser
Voice
Posts: 10
Joined: Sat Jul 09, 2005 11:27 pm

get string thing

Post by loser »

<- :server 485 botnick #channel :server comment
how can i get only the #channel string ?
thx
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Code: Select all

[lindex [split $YOURVARIABLE] 1]
should be #channel

Code: Select all

bind raw -|- 485 getraw
proc getraw {from key args} {
 set chan [lindex [split $args] 1]
 return $chan
}
Locked