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

by nml375
Thu Jul 24, 2014 1:48 pm
Forum: Scripting Help
Topic: Running a proc using bind time
Replies: 13
Views: 11036

G'evening Gents, You will not be able to create a mask that will trigger on "sundays", mainly because there's no weekday-field in the mask. The "day" part refers to the day of month. If you'd like the binding to trigger on a specific date, then that is obviously possible, however...
by nml375
Sun Jul 20, 2014 4:40 pm
Forum: Modules & Programming
Topic: Consider addressing compatibility regarding 'inline' keyword
Replies: 1
Views: 10180

Just for reference:
http://lists.eggheads.org/pipermail/bug ... 01038.html
Taken from the mailing list of the official development team at eggheads.org
by nml375
Thu Jul 03, 2014 1:06 pm
Forum: Scripting Help
Topic: Lindex help
Replies: 21
Views: 22564

Sorry for the late answer. Since you are using the "pub" binding, "id3" is considered the command, and thus removed from the text-argument ($arg). Thus, the regular expression needs to be adjusted accordingly: set pattern {([^>]+)? > ([^>]+)? from ([0-9]+)? at ([0-9]+)? Hz}
by nml375
Fri Jun 27, 2014 11:47 am
Forum: Scripting Help
Topic: Lindex help
Replies: 21
Views: 22564

Hello,
Worth keeping in mind, when it comes to regexp and regular expressions:
The variables listed in the command line, will only be set if there is a match for the pattern within the text string. The regexp command will return 1 if a match was found, otherwise 0.
by nml375
Tue Jun 24, 2014 1:56 pm
Forum: Scripting Help
Topic: Lindex help
Replies: 21
Views: 22564

Hello, A crude example matching your posted strings is as follows; set pattern {iD3 > ([^>]+) > ([^>]+) from ([0-9]+) at ([0-9]+) Hz} regexp $pattern $arg match rlsname genre year sampling Learning regular expressions can be a bit daunting, so you might want to read up on some of the rules; http://w...
by nml375
Fri Jun 20, 2014 10:14 am
Forum: Scripting Help
Topic: Lindex help
Replies: 21
Views: 22564

Hello, The first problem here, is that you are using lindex on a string. The lindex command (and other list-commands such as lrange, foreach, etc) is designed to operate on properly formatted tcl lists, nothing else. If you have a common field separator, then you could use the split command to split...
by nml375
Sat Jun 14, 2014 7:13 pm
Forum: Script Requests
Topic: Count ban time
Replies: 4
Views: 6413

The script checks the banlist in the channel, not the bot's internal banlist. If a ban is already present when the bot joins the channel, it will use it's own time of joining the channel as the ban creation time.
by nml375
Sat Jun 14, 2014 3:12 pm
Forum: Script Requests
Topic: Count ban time
Replies: 4
Views: 6413

Something like this should do the trick... Code is untested though. namespace eval BanReport { variable SourceChannel "#channel1" variable DestinationChannel "#channel2" proc reportBans {minute hour day month weekday} { variable SourceChannel variable DestinationChannel foreach b...
by nml375
Sun Jun 01, 2014 11:16 am
Forum: Script Requests
Topic: Eggdrop script for FTP transfer !?
Replies: 2
Views: 4887

Hello, I doubt you'll get much response to this request, since the very nature of your post hints about illegal sharing of copyright-protected materials... That would be the first rule in the user registration agreement of this forum. Your intentions may be sincere, however the requests of this natu...
by nml375
Sun Jun 01, 2014 10:59 am
Forum: Scripting Help
Topic: New to TCL - making sure nick is registered with NickServ
Replies: 9
Views: 11229

@Get_A_Fix: "Thrash down" might have been a strong choise of words, I admit. Apologies for that. I do realize that you've had some discussions off-forum. Unfortunately, that means that the rest of us don't have the full context. My comment regarding code was the example in your initial pos...
by nml375
Sat May 31, 2014 3:36 pm
Forum: Scripting Help
Topic: New to TCL - making sure nick is registered with NickServ
Replies: 9
Views: 11229

@Get_A_Fix: If you're really going to thrash down on a new poster like that, you really should atleast get your own code/facts straight (and no, I don't encourage thrashing down on users). First of all, your posted example is using recursive code in a flawed manner. Secondly, within auth_check, ther...
by nml375
Fri May 30, 2014 5:02 pm
Forum: Scripting Help
Topic: New to TCL - making sure nick is registered with NickServ
Replies: 9
Views: 11229

Hello, You'll have to re-think your coding ways alittle, I'm afraid. The workflow you are suggesting needs to work in an asynchronous way - that is, you cannot expect the server reply of your WHOIS-command to be available within your ofm:signup function. Instead, you should have your WHOIS-response ...
by nml375
Sat Apr 05, 2014 5:59 pm
Forum: Scripting Help
Topic: putdccraw is deprecated. Please use putdcc/putnow instead.
Replies: 2
Views: 5817

I'd suggest removing all that code alltogether...
Those queue-commands do exist for a reason. If you really want to spew out text unthrottled, you should use the putnow command in the first place...
by nml375
Sun Mar 02, 2014 11:16 am
Forum: Scripting Help
Topic: Proc Finish?
Replies: 5
Views: 11872

Remove the comment (# close tracefile) from your code...
Or prefix the # with a ;
Such as this:

Code: Select all

...
close $tracefile ;# close tracefile
by nml375
Sat Dec 21, 2013 2:22 pm
Forum: Scripting Help
Topic: lsearch help
Replies: 10
Views: 8434

Worth mentioning, array set expects a valid list of key-value pairs as input. For a trivial case, you'll be able to craft lists by hand; though I generally recommend using the list command for building more complex lists. This is especially important if you have strings containing spaces or brackets...