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

by greenbear
Sun Mar 13, 2005 3:30 pm
Forum: Archive
Topic: Help me about timer
Replies: 1
Views: 1123

Something like this will work

Code: Select all

utimer 2 {putquick "PRIVMSG $chan :text goes here"}
by greenbear
Sun Mar 13, 2005 1:46 pm
Forum: Archive
Topic: Eggdrop abuse !
Replies: 23
Views: 7232

The source code for the various ircd's used on EFnet is publicly awailable.

hybrid
ratbox
comstud

And if you want chanfix, there's OpenChanfix.
by greenbear
Sun Mar 13, 2005 2:03 am
Forum: Archive
Topic: Getting this message and Eggdrop not showing up in mIRC
Replies: 9
Views: 4589

rm <filename>
You'll find the filename in your eggdrop config file, look for 'set userfile'.
by greenbear
Sun Mar 13, 2005 12:07 am
Forum: Archive
Topic: is there a way to return date in tcl?
Replies: 2
Views: 1237

For the date (13)

Code: Select all

strftime %d
For the full date (13/03/2005)

Code: Select all

strftime %d/%m/%Y
by greenbear
Sat Mar 12, 2005 10:52 pm
Forum: Archive
Topic: pls help me with limited channel
Replies: 1
Views: 975

Try one of the 23 limit scripts that you can find in the tcl archive.
by greenbear
Sat Mar 12, 2005 7:35 pm
Forum: Archive
Topic: Taking an input from a shell command
Replies: 19
Views: 8753

If you take me somewhere sunny for the honeymoon, then yea, why not. :oops:

Oh, and I forgot to divide totGB in the code above, but I'm sure you'll figure it out.
by greenbear
Sat Mar 12, 2005 6:46 pm
Forum: Archive
Topic: Taking an input from a shell command
Replies: 19
Views: 8753

set line "m;0;1110636195;133;2131;183;111;1" # split up the list on ; and find the info. # 4th and 5th word on the list, counting from 0. set inMB [lindex [split $line \;] 3] set outMB [lindex [split $line \;] 4] # do the math, making sure it uses decimals set inGB [expr $inMB/1024.0] set...
by greenbear
Sat Mar 12, 2005 5:31 pm
Forum: Archive
Topic: Taking an input from a shell command
Replies: 19
Views: 8753

I just use concat to remove leading whitespace's, so that it looks prettier 8)
by greenbear
Sat Mar 12, 2005 4:06 pm
Forum: Archive
Topic: Taking an input from a shell command
Replies: 19
Views: 8753

ah yea, I made a typo, it should be

Code: Select all

bind pub -|- !bwusage vnstat
proc vnstat {n u h c t} {
 set d [eval exec vnstat -m]
 foreach l [split $d \n] {
  if [string match -noc *[strftime %b]* $l] {
    putserv "PRIVMSG $c :[concat $l]"
  }
 }
 
by greenbear
Sat Mar 12, 2005 2:34 pm
Forum: Archive
Topic: Taking an input from a shell command
Replies: 19
Views: 8753

TurboChicken wrote:i don't understand what *[strftime %b]* is looking for?
It returns the current month, in a 3 char format. ie. Mar

So the code just look for the line that have 'Mar' in it and send it to irc.
by greenbear
Sat Mar 12, 2005 2:22 pm
Forum: Archive
Topic: MySQL for Eggdrop TCL
Replies: 5
Views: 2591

I've been using BarkerJr's mysql module for years without any problems.

http://barkerjr.net/irc/eggdrop/modules/
by greenbear
Sat Mar 12, 2005 2:12 pm
Forum: Archive
Topic: Taking an input from a shell command
Replies: 19
Views: 8753

Maybe something like this

Code: Select all

bind pub -|- !vnstat vnstat
proc vnstat {n u h c t} {
 set d [eval exec vnstat -m]
 foreach l [split $d \n] {
  if [string match -noc *[strftime %b]* $l] {
    putserv "PRIVMSG $c :[concat $l]"
  }
 }
}
*Edit* Fixed a typo.
by greenbear
Fri Mar 11, 2005 7:07 pm
Forum: Archive
Topic: Contdown: Topic and Command
Replies: 6
Views: 3139

np
by greenbear
Fri Mar 11, 2005 12:03 pm
Forum: Archive
Topic: Add/Remove IP in a file on Join/Quit
Replies: 2
Views: 1574

To resolve the host you can use the dns module. Here's an example.. bind join - * jip proc jip {n u h c} { set uh [lindex [split $u @] 1] set ip [dnslookup $uh resip] # ... } proc resip {i h s} { if {$i!="0.0.0.0"} { return $i } { return $h } } You'll find more info about reading/writing t...
by greenbear
Fri Mar 11, 2005 12:18 am
Forum: Script Support & Releases
Topic: WarStats
Replies: 8
Views: 15573

Try being (alot) more specific, then yea, maybe we can help you.

It would be helpful if you could tell us what settings you use and how you execute it, and posted the relevant code here (using code tags).