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

by DayCuts
Sat Apr 07, 2007 2:55 am
Forum: Script Requests
Topic: Voice user if in MYSQL db
Replies: 3
Views: 3711

Re: Voice user if in MYSQL db

All you really need to do is use pushmode after the user online messages. Altered script (not tested but should be fine). load /usr/lib/mysqltcl-2.30/libmysqltcl2.30.so package require mysqltcl set db_handle [mysqlconnect -host localhost -socket /var/run/mysqld/mysqld.sock -user user -password pass ...
by DayCuts
Sat Apr 07, 2007 2:31 am
Forum: Scripting Help
Topic: help with mysqltcl mod and long mysqlconnect timeouts
Replies: 2
Views: 3015

help with mysqltcl mod and long mysqlconnect timeouts

The problem is basically that if i write a script that uses mysqltcl, and there is at any point a problem connecting to the mysqld (maybe its ip changed for example), there is a rather large timeout period (about 3 minutes) before throws the tcl error (or moves on/logs if im using catch). My query i...
by DayCuts
Thu Apr 05, 2007 10:53 am
Forum: Modules & Programming
Topic: MysqlTCL
Replies: 8
Views: 21659

Looks like an old thread, but mysqltcl requires a tcl installation on windows systems because it is a tcl modules not an eggdrop module. To use the mysqltcl binaries on windows you must have tcl installed (and i assume tell eggdrop to use it) and load the module into tcl itself. You should then be a...
by DayCuts
Tue Mar 01, 2005 7:02 pm
Forum: Archive
Topic: preserving text/strings which include special charactors
Replies: 4
Views: 2523

Unfortunately the problem does not lie with the regular expressions. It stems from the handling of {, } and \ charactors in embedded tcl lists and the related list functions. Limitation of the language i suppose, thanks for taking the time to read.
by DayCuts
Tue Feb 22, 2005 12:40 am
Forum: Archive
Topic: preserving text/strings which include special charactors
Replies: 4
Views: 2523

preserving text/strings which include special charactors

Is there a way of preserving (sorta like how [pre] tags work in php) a string in tcl? My problem is this... my script tracks certain data in a channel. This data is kept in a tcllist. Each time the script is triggered it runs a regex check to see that the data (text/arg) is in the correct format. It...
by DayCuts
Thu Sep 02, 2004 8:50 pm
Forum: Archive
Topic: oper fjoin/!move/vhost .tcl help
Replies: 5
Views: 1670

That is mirc scripting not tcl. All you have done is change the on text events to tcl binds. which simply will not work. First of all you must seperate binds from the code.. eg bind pub m|m vhost my:vhostproc proc my:vhostproc {nick host hand chan arg} { your code here } A HUGE factor to realise is ...
by DayCuts
Thu Aug 26, 2004 10:32 am
Forum: Archive
Topic: regexp help
Replies: 5
Views: 3466

Your right, i was confusing regex flavors, tcl does include the digits and underscore in \w but there are some dont.
by DayCuts
Thu Aug 26, 2004 6:33 am
Forum: Archive
Topic: regexp help
Replies: 5
Views: 3466

(\d|\w)(\1{4,}) = any word charactor or digit 5 or more times
(.)(\1{4,}) = any charactor at all 5 or more times

edit: guess we were posting at same time :\

Here is a nice website with good guides to regular expressions...
http://www.regular-expressions.info/
by DayCuts
Thu Aug 26, 2004 6:15 am
Forum: Archive
Topic: (!) timer drift -- spun 3 minutes
Replies: 9
Views: 7972

egghead, that is what the timer calls.... it calls a maintenance and backup procedure, which performs a quick regex search to strip out bad entries then re-writes the variable list to file. It is just one simple regex search and then the write to file using 'puts $xpf [join $xpl "\n"]'. Th...
by DayCuts
Wed Aug 25, 2004 2:07 am
Forum: Archive
Topic: (!) timer drift -- spun 3 minutes
Replies: 9
Views: 7972

I read that in another thread here and in the package to see if there was any extra, but i dont see how any of them seem to apply to me. And since dereckson specifically mentioned the 58 minutes with there alternate explanation i thought maybe they could expand or be a little clearer on the issue. I...
by DayCuts
Tue Aug 24, 2004 5:12 pm
Forum: Archive
Topic: (!) timer drift -- spun 3 minutes
Replies: 9
Views: 7972

Dereckson, any chance you could expand a little on that, or anybody else. I get the '(!) timer drift -- spun 58 minutes' message from time to time, there is no patturn to it and it can happen at any time of the day. I know this is not a problem with a process hogging script or such. As the scripts w...
by DayCuts
Sun Aug 22, 2004 3:13 pm
Forum: Archive
Topic: Rounding to x places?
Replies: 4
Views: 1312

Ah, thank you user. I guess i just didn't relate format to string/math manipulation.
by DayCuts
Sun Aug 22, 2004 3:05 pm
Forum: Archive
Topic: Need help with utimer then killutimer
Replies: 6
Views: 2240

Your right, timers in tcl are not recurring, they run once only, so when your proc is called from the timer, it is automatically stopped. No need for the use of killtimer or any proc to search for it as it wont exist. However when i need to check and kill a timer, i simple use something like this......
by DayCuts
Sat Aug 21, 2004 12:53 pm
Forum: Archive
Topic: Rounding to x places?
Replies: 4
Views: 1312

Rounding to x places?

I have looked through the tcl/tk help and tried using expr round(), this works of corse. However i seem unabled to round accurately to a specific X places. I have seen in a few places people use things such as [expr round(9.345) * 1.0] or similar things, but such workarounds are not very accurate as...
by DayCuts
Mon Aug 16, 2004 1:08 pm
Forum: Archive
Topic: statuslog - changing deley?
Replies: 0
Views: 1441

statuslog - changing deley?

Is it possible to change the recurrance delay of the statuslog that is displayed in the console, and if so how?