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.

Search found 5 matches

by blip2
Fri May 18, 2007 12:41 pm
Forum: Scripting Help
Topic: Removing lines from text file
Replies: 4
Views: 3511

set fname "files/requests.txt" set fp [open $fname "r"] set data [read -nonewline $fp] set lines [split $data "\n"] close $fp while {[set i [lsearch -glob $lines $text]]>-1} { set lines [lreplace $lines $i $i] } set fp [open $fname "w"] puts $fp [join $lines ...
by blip2
Fri May 18, 2007 12:29 pm
Forum: Scripting Help
Topic: Removing lines from text file
Replies: 4
Views: 3511

set fname "files/requests.txt" set fp [open $fname "r"] set data [read -nonewline $fp] set lines [split $data "\n"]= close $fp set fp [open $fname "w"] while {[set i [lsearch -glob $lines $text]]>-1} { set lines [lreplace $lines $i $i] } close $fp now got tha...
by blip2
Fri May 18, 2007 9:59 am
Forum: Scripting Help
Topic: Removing lines from text file
Replies: 4
Views: 3511

Removing lines from text file

I Have a list in a file called requests.txt which looks like this: #Test #Test2 #Test3 #Test4 #Test5 #Test6 (etc) When i use a !trigger from a channel to remove a certain word from the file it deletes every line in the file instead of the match and here is what i have: set fname "files/requests...
by blip2
Thu May 17, 2007 12:01 pm
Forum: Scripting Help
Topic: Channel Flags
Replies: 2
Views: 2376

Ahh, obvious

Thank you :]
by blip2
Thu May 17, 2007 11:41 am
Forum: Scripting Help
Topic: Channel Flags
Replies: 2
Views: 2376

Channel Flags

Is it possible to set channel flags in a script and if so - how?

chanset only works in the console.

Thanks
blip2