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 10 matches

by StaleJoke
Wed Jun 07, 2006 11:54 am
Forum: Scripting Help
Topic: Insert Line After Regular Interval
Replies: 1
Views: 2979

Insert Line After Regular Interval

If this is covered somewhere else then please direct me there because i couldnt find it. I am trying to insert a line in a text file, starting after a certain line and then at regular intervals till eof. Not to mention that this works in a wierd way. proc main {nick host hand chan rest} { global opf...
by StaleJoke
Sat May 13, 2006 9:48 am
Forum: Scripting Help
Topic: call array from variable
Replies: 5
Views: 5903

array set countem {}

Tcl error [countem]: can't read "users(1.#ChannelA)": no such element in array
by StaleJoke
Thu May 11, 2006 8:51 pm
Forum: Scripting Help
Topic: call array from variable
Replies: 5
Views: 5903

I have to set an array

Within the proc i want to use the variable like:

$users(1.#Channel1)

$users(2.#Channel1)


$users(1.#AnotherChannel2)

$users(2.#AnotherChannel2)

How should i go about doing it ?
by StaleJoke
Wed May 10, 2006 8:54 pm
Forum: Scripting Help
Topic: regexp
Replies: 7
Views: 6884

On the same lines, if the bot encounters an astrix * as part of the word ( e.g. word* ) it gives me the error as:

Tcl error [repact_fld]: couldn't compile regular expression pattern: quantifier operand invalid
by StaleJoke
Thu May 04, 2006 8:02 pm
Forum: Scripting Help
Topic: regexp
Replies: 7
Views: 6884

Done.

Code: Select all

set r [regexp -nocase -all -- [subst -nocommands -nobackslashes $RE] $arg]
But problem happens when it the var $RE is ) or a (
The error it spews out is

Tcl error [rep_fld]: couldn't compile regular expression pattern: parentheses () not balanced

Any suggestions ?
by StaleJoke
Wed May 03, 2006 7:52 pm
Forum: Scripting Help
Topic: regexp
Replies: 7
Views: 6884

regexp

Code: Select all

set r [regexp -nocase -all {$t1|$t2} $arg]
Doesn't work. Any corrections need to be done ?
by StaleJoke
Fri Dec 30, 2005 8:43 pm
Forum: Scripting Help
Topic: Startup another bot.
Replies: 8
Views: 10900

You lost me there.
by StaleJoke
Thu Dec 29, 2005 10:30 pm
Forum: Scripting Help
Topic: Startup another bot.
Replies: 8
Views: 10900

With or without the '.' Either ways it does not work.
by StaleJoke
Thu Dec 29, 2005 10:13 pm
Forum: Scripting Help
Topic: Startup another bot.
Replies: 8
Views: 10900

This way ?

Code: Select all

proc sother {} {
   catch {exec "./home/otherbot/scripts/botchk >/dev/null 2>&1"}
}
Does not work.
by StaleJoke
Thu Dec 29, 2005 2:06 pm
Forum: Scripting Help
Topic: Startup another bot.
Replies: 8
Views: 10900

Startup another bot.

I searched already, didnt find so posting I need to know how can i make one bot startup another one which is in a different directory. Please dont tell me to use contrab because i do not want the contrab to check it every some minutes and then start. I want to start another bot only as a result of ...