| View previous topic :: View next topic |
| Author |
Message |
T4nc Voice
Joined: 26 Jul 2009 Posts: 1
|
Posted: Wed Aug 05, 2009 6:30 pm Post subject: how can i disable the mode-queue ? |
|
|
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 ? |
|
| Back to top |
|
 |
user

Joined: 18 Mar 2003 Posts: 1452 Location: Norway
|
Posted: Thu Aug 06, 2009 9:04 am Post subject: |
|
|
Edit server.c (#define msgrate 0) and recompile. _________________ Have you ever read "The Manual"? |
|
| Back to top |
|
 |
MrStonedOne Voice
Joined: 25 Feb 2007 Posts: 8
|
Posted: Sun Nov 15, 2009 1:10 pm Post subject: |
|
|
my bot is oper and i have it sajoining itself to all the channels on its list (it then parts inactive channels)
| Code: | | 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: | 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 |
|
| Back to top |
|
 |
thommey Halfop
Joined: 01 Apr 2008 Posts: 73
|
Posted: Fri Nov 20, 2009 9:37 pm Post subject: |
|
|
As of eggdrop1.6.20 there will be an internal "putnow" command and "putdccraw" will be gone.
So I'd recommend:
| Code: |
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
}
}
}
|
|
|
| Back to top |
|
 |
pseudo Halfop
Joined: 23 Nov 2009 Posts: 88 Location: Bulgaria
|
Posted: Wed Nov 25, 2009 6:55 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
|