egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how can i disable the mode-queue ?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming
View previous topic :: View next topic  
Author Message
T4nc
Voice


Joined: 26 Jul 2009
Posts: 1

PostPosted: Wed Aug 05, 2009 6:30 pm    Post subject: how can i disable the mode-queue ? Reply with quote

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
View user's profile Send private message
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Thu Aug 06, 2009 9:04 am    Post subject: Reply with quote

Edit server.c (#define msgrate 0) and recompile.
_________________
Have you ever read "The Manual"?
Back to top
View user's profile Send private message
MrStonedOne
Voice


Joined: 25 Feb 2007
Posts: 8

PostPosted: Sun Nov 15, 2009 1:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
thommey
Halfop


Joined: 01 Apr 2008
Posts: 73

PostPosted: Fri Nov 20, 2009 9:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
pseudo
Halfop


Joined: 23 Nov 2009
Posts: 88
Location: Bulgaria

PostPosted: Wed Nov 25, 2009 6:55 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber