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.
Discussion of Eggdrop's code and module programming in C.
T4nc
Voice
Posts: 1 Joined: Sun Jul 26, 2009 5:29 am
Post
by T4nc » Wed Aug 05, 2009 6:30 pm
Hi guys,
i would like to know how I can disable the mode-queue at the start of the eggdrop.
I have tried to change some things like setting the msgrate value to 0 in the source of the server.mod but this didn't solved the problem.
My bot is joining more than 100 Channel on the network and while he is doing this after a restart the queue gets filled. The Bot got a special user-class so he does not have any flood restrictions.
Does anyone got experience with this ?
user
Posts: 1452 Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway
Post
by user » Thu Aug 06, 2009 9:04 am
Edit server.c (#define msgrate 0) and recompile.
Have you ever read "The Manual"?
MrStonedOne
Voice
Posts: 8 Joined: Sun Feb 25, 2007 8:36 am
Post
by MrStonedOne » Sun Nov 15, 2009 1:10 pm
my bot is oper and i have it sajoining itself to all the channels on its list (it then parts inactive channels)
Code: Select all
putnow "sajoin $::botnick [join [channels] ,]"
add something like that inside of a init-server evnt bind
Note: putnow is a tcl proc i have that uses putdccraw.
Code: Select all
proc putnow {a {options "0"}} {
append a "\n"
putdccraw 0 [string length $a] $a
}
rename putserv ""
rename putquick ""
rename puthelp ""
proc putserv {text {options "0"}} {
putnow $text
}
proc putquick {text {options "0"}} {
putnow $text
}
proc puthelp {text {options "0"}} {
putnow $text
}
also, from testing the msgrate to 0 trick should work, just make sure to make distclean and fully recompile
thommey
Halfop
Posts: 76 Joined: Tue Apr 01, 2008 2:59 pm
Post
by thommey » Fri Nov 20, 2009 9:37 pm
As of eggdrop1.6.20 there will be an internal "putnow" command and "putdccraw" will be gone.
So I'd recommend:
Code: Select all
if {[catch {package require eggdrop 1.6.20}]} {
proc putnow {text args} {
set text "[string trim $text]\r\n"
putdccraw 0 [string length $text] $text
}
foreach cmd {putserv putquick puthelp} {
if {[info commands ${cmd}_r] eq ""} {
rename $cmd ${cmd}_r
interp alias {} $cmd {} putnow
}
}
}
pseudo
Halfop
Posts: 88 Joined: Mon Nov 23, 2009 4:52 am
Location: Bulgaria
Contact:
Post
by pseudo » Wed Nov 25, 2009 6:55 am
In addition to the putnow command, msgrate is now a config variable "msg-rate" and you no longer need to recompile in order to change it.