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

by user
Wed Mar 24, 2010 4:12 am
Forum: Scripting Help
Topic: [SOLVED] catch errors, dont make eggy die
Replies: 18
Views: 10198

if {[catch {source $script} err]} { You are invoking 'source' in the scope of the proc, which means the code inside the sourced files is also executed in this scope. ("global" variables become local to the proc etc.) Use 'uplevel' to have it invoked in the right scope: if {[catch [list up...
by user
Thu Jan 21, 2010 9:20 am
Forum: Script Requests
Topic: Simple Channel Manager
Replies: 9
Views: 5979

Yeah...I meant str :) It's been a while since I did any eggdrop related coding. I don't see how learning to use custom channel settings would be a bad idea, though. It's not much harder to grasp than the logic you use to do the channel name checking IMO. (You could move the 'set' part out of the 'if...
by user
Thu Jan 21, 2010 4:56 am
Forum: Script Requests
Topic: Simple Channel Manager
Replies: 9
Views: 5979

Why use hardcoded channel names?

Here's an idea:

Code: Select all

setudef str destchan
Then '.chanset #foo.priv destchan #foo' and use something like this in the procs:

Code: Select all

if {![validchan [set dest [channel get $chan destchan]]]} {return}
This will make the script work on any number of channels.

EDIT: flag->str
by user
Thu Dec 03, 2009 5:08 pm
Forum: Scripting Help
Topic: Converting text strings to gif files
Replies: 9
Views: 5648

If you really want to generate images, try ImageMagick via TclMagick...

http://www.imagemagick.org/Usage/text/

...but I don't see why that would be any easier than passing the data to the client some other way (javascript/remote server side include/rpc/whatever)
by user
Tue Nov 24, 2009 10:24 am
Forum: Scripting Help
Topic: [discussion] invalid command name "clock"
Replies: 2
Views: 6155

The clock command was recently made an ensemble. It is set up from init.tcl, so if you messed up your tcl installation (by e.g. loading some old init.tcl), it won't work. Fix: Don't mess up the installation :wink:
by user
Mon Nov 09, 2009 9:59 am
Forum: Scripting Help
Topic: Manipulating multiple variables simultaneously
Replies: 3
Views: 3045

use set

Code: Select all

set $var [string trim [set $var] ^]
by user
Fri Oct 09, 2009 12:42 pm
Forum: Scripting Help
Topic: TLS on windrop
Replies: 1
Views: 2928

by user
Thu Aug 06, 2009 9:04 am
Forum: Modules & Programming
Topic: how can i disable the mode-queue ?
Replies: 4
Views: 11829

Edit server.c (#define msgrate 0) and recompile.
by user
Thu May 28, 2009 7:45 pm
Forum: Scripting Help
Topic: Announce Bot w/ Telnet
Replies: 13
Views: 15379

Change the port.
by user
Wed Apr 22, 2009 7:00 am
Forum: Scripting Help
Topic: Bind: same proc, different arguments
Replies: 4
Views: 3980

Re: Bind: same proc, different arguments

Code: Select all

bind pub - !test1 [list proc1 test1]
bind pub - !test2 [list proc1 "something else"]
proc proc1 {addedArg nick uhost hand chan arg} {...}
by user
Thu Feb 12, 2009 6:06 am
Forum: Script Requests
Topic: script to autovoice nicks that start with lower case letter
Replies: 5
Views: 7630

why not use regexp? :)

Code: Select all

proc join:autovoice {nick uhost hand chan} {
	if {[channel get $chan autovoicejoin]&&[regexp {^[^A-Za-z]*[a-z]} $nick]} {
		pushmode $chan +v $nick
	}
}
by user
Wed Jan 21, 2009 10:44 am
Forum: Script Support & Releases
Topic: Statistics.tcl by perpleXa (the pubm problem)
Replies: 9
Views: 17512

tcl-commands.doc: (6) PUBM (stackable) bind pubm <flags> <mask> <proc> procname <nick> <user@host> <handle> <channel> <text> Description: just like MSGM, except it's triggered by things said on a channel instead of things /msg'd to the bot. The mask is matched against the channel name followed by th...
by user
Thu Jan 15, 2009 9:12 pm
Forum: Script Support & Releases
Topic: Universal channel script
Replies: 224
Views: 215798

I've tried what you've said. It does not work, 100%. :( Add "return 0" to the end of the following procs: punish (line 430), clone (line 458), repeat (line 484) and mass (line 520) ... I'm too tired to read the rest of the script to make more sense of the timing stuff right now...let's ho...
by user
Thu Jan 15, 2009 5:03 am
Forum: Script Support & Releases
Topic: Universal channel script
Replies: 224
Views: 215798

I would really like a fix for the above bug. add return 0 as the last line within the proc called "mass" (line 520 in version 4.2) EDIT: you may have to add it to the end of the proc named "punish" too (line 430) 1.) Does anybody still use it? I see this thread hasn't had a post...
by user
Sat Dec 27, 2008 4:26 pm
Forum: Script Requests
Topic: how set trigger
Replies: 15
Views: 12175

IRC_MAC wrote:when i rehash server it goes back the the orignal date file
I forgot to make the url array global when loading urls... try the edited version.