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.
-
B
Balu
Post
by Balu »
Hi,
what do i have to do to let te following command subtitute de %n in a string with the variable $nick and so on?
[string map -nocase {%n "$nick" %1 "[lindex $args 0]" %2 "[lindex
$args 1]" %3 "[lindex $args 0]"} [join $command_output " "]]
-
user
-
- Posts: 1452
- Joined: Tue Mar 18, 2003 9:58 pm
- Location: Norway
Post
by user »
{} defeats variable/command substitution. Use 'list' to make the map.
Last edited by
user on Tue Oct 28, 2003 6:09 pm, edited 1 time in total.
Have you ever read "The Manual"?
-
B
Balu
Post
by Balu »
thx, that helped me out, the script is running fine now, it even escaped the chars ; and $ out. Don't need to work around that anymore
