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.

eggdrop reconnecting after 'n' dcc sends

Old posts that have not been replied to for several years.
Locked
h
hide
Voice
Posts: 26
Joined: Mon Dec 22, 2003 12:02 pm

eggdrop reconnecting after 'n' dcc sends

Post by hide »

Hello eneryone.
I run an eggdrop which sends a certain file to every user that joins the channel.
But however, the problem is that the bot simply reconnects from the server after it sends a number of dcc sends. For example: the bot tries to send dcc, when the send number reaches lets say 20 the bot simply reconnects to the irc network (when it quits, specifies reason 'client exited')..
Is it possible to solve this problem so the bot will stay online no matter of how many dcc it had send?

Thanks
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Is the file large? and is it sending this file a lot? i.e. is it in a big channel?
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
h
hide
Voice
Posts: 26
Joined: Mon Dec 22, 2003 12:02 pm

Post by hide »

The file is about 6 kilobytes and the channel is large: about 100 people who join often. However, I'm sure this is not sendq/excess flood problem. This is rather configuration problem, because 'set serverror-quit 0' temporary solved the problem..

But still, I need to investigate what's wrong in my config file..

Here it comes:

Code: Select all

set mod-path "/usr/lib/eggdrop/modules/"
set help-path "/usr/share/eggdrop/help/"
set text-path "/usr/share/eggdrop/text/"
loadmodule dns
loadmodule channels
loadmodule server
loadmodule ctcp
loadmodule irc
loadmodule notes
loadmodule console
loadmodule blowfish
loadmodule filesys
loadmodule transfer

set nick "Update"

set altnick "Update?"

set realname "VKT Chat daily update service."

bind evnt - init-server evnt:init_server

proc evnt:init_server {type} {
  global botnick
  putquick "MODE $botnick +iRdTBp-hs"
}

set servers {
  192.168.1.9:6667:eggupdat3
}

channel add #Main {
  chanmode "+CGnST-tlikm"
  idle-kick 0
  stopnethack-mode 0
}
channel add #IRCHelp {
  chanmode "+CnrSt-likm"
  idle-kick 0
  stopnethack-mode 0
}
channel set #main +enforcebans +dynamicbans +userbans
channel set #main +dynamicexempts +userexempts +dynamicinvites +userinvites
channel set #main -autoop -bitch +protectops +protectfriends +dontkickops
channel set #main +greet -statuslog
channel set #main +revenge +autovoice
channel set #main -secret -shared +cycle
channel set #main -inactive -seen +nodesynch

channel set #irchelp +enforcebans +dynamicbans +userbans
channel set #irchelp +dynamicexempts +userexempts +dynamicinvites +userinvites
channel set #irchelp -autoop -bitch +protectops +protectfriends +dontkickops
channel set #irchelp +greet -statuslog
channel set #irchelp -revenge +autovoice
channel set #irchelp -secret -shared +cycle
channel set #irchelp -inactive -seen +nodesynch
set net-type 3

set owner "hide"
set userfile "eggdropusers.user"
set chanfile "eggdropchans.chan"

set temp-path "/tmp"

logfile msbsxco * "/home/daemon/eggdrop.log"

logfile jpk #IRChelp "logs/help.log"

set console "mkcx"


set lowercase-ctcp 0

set keep-nick 1

set never-give-up 1

set server-cycle-wait 30

set server-timeout 40

set ctcp-mode 1

set init-server {putserv "PRIVMSG nickserv :identify eggupdat3"}

set max-dcc 850

set nat-ip "82.****.**.**"

set serverror-quit 0

source /usr/share/eggdrop/scripts/alltools.tcl
source /usr/share/eggdrop/scripts/action.fix.tcl
source /usr/share/eggdrop/scripts/compat.tcl
source /usr/share/eggdrop/scripts/userinfo.tcl
source /usr/share/eggdrop/scripts/dccsend.tcl
source /usr/share/eggdrop/scripts/nickserv.tcl
loadhelp /usr/share/eggdrop/help/userinfo.help
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

i cant see anything perticularaly wrong with your config mate, there could be a problem with it connecting to a local network and sending to the internet but thats just a guess. :roll:
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
h
hide
Voice
Posts: 26
Joined: Mon Dec 22, 2003 12:02 pm

Post by hide »

I've noticed a strange thing: the bots gots disconnected from the server constantly, every 15 minutes but its uptime is not reset; it just reconnects.

There was no such problem when bot was just idling: not sending the dccs (when the dcc tcl script was not loaded)

BTW: the bot distributes the file via dcc only on local network, there are no users from internet.

Any ideas about this problem?
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

well, for starters, you have only posted 25% of the conf variables that are available and/or relevant....where are the settings for the transfer and filesys modules? And since the problem is suspected to originate in some anonymous "dcc tcl", it might be a good idea to post which dcc tcl...there are some 900 such scripts.....
set max-dcc 850 ?!? I doubt you need this set so high....
set dcc-block <-- ?
Take a gander at Configuring Your Eggdrop...useful information there.
:mrgreen:
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

and why only 1 server? ffs mate :wink:
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

YooHoo wrote:and why only 1 server? ffs mate :wink:
its on his lan
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

/me hides her ignorance.....always paid for my shells :wink:
h
hide
Voice
Posts: 26
Joined: Mon Dec 22, 2003 12:02 pm

Post by hide »

Yes, everything is on a LAN that's why there is only one server (BTW, the server runs on localhost where the bot is)

The config file is edited according to debian's eggdrop apt package 'example.simple.conf' file


I've changed my configuration a bit but eggdrop still keeps reconnecting:

set max-dcc 50
set dcc-block 1024
set max-dloads 10
set max-file-users 45

The dcc tcl is specific: someone of this community wrote it to me [however I don't remember his not but GREAT THANKS to him :)]

here it comes:
set sent {}
set file /home/daemon/Update/vkt.ini
set save /home/daemon/Update/sent.txt

bind join - * myjoin
bind time - "% % % % %" mysave
bind sent - * mysent

if ![catch {set f [open $save]}] {
while {![eof $f]} {lappend sent [gets $f]}
close $f
}

proc myjoin {n u h c} {
scan $u %\[^@\]@%s user host
if [regexp ^~?(cht-v3\\.1|off)$ $user] {
set host [string tolower $host]
if {[lsearch $::sent $host] == -1} {
dccsend $::file $n
}
}
}

proc mysent {h n p} {
scan [getchanhost $n] %\[^@\]@%s user host
set host [string tolower $host]
lappend ::sent $host
}

proc mysave {m h d mn y} {
set f [open $::save w]
foreach h $::sent {puts $f $h}
close $f
}
Locked