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.

Quit channels on restart

General support and discussion of Eggdrop bots.
Post Reply
S
Slaktarn
Halfop
Posts: 44
Joined: Wed May 02, 2007 1:48 am

Quit channels on restart

Post by Slaktarn »

Hay i have an eggdrop that is on BNC, Everytime i do .restart it quit the channels and rejoin them when its restarted, is it someway to avoid this and let it still be on channels even if bot restarted so it not need to part/join everytime

/ Slaktarn
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

No, there is not (apart from re-writing the sourcecode).
You could of course go for an unclean shutdown using kill -9 from your shell, though you'd have to manually sync your user- and channels-file prior killing it.
NML_375
J
Johannes13
Halfop
Posts: 46
Joined: Sun Oct 10, 2010 11:38 am

Post by Johannes13 »

ok, on shutdown it sends a PART 0,0 out. Just use bind out and block that.

Might cause some bad side effects.
S
Slaktarn
Halfop
Posts: 44
Joined: Wed May 02, 2007 1:48 am

Post by Slaktarn »

Johannes13 wrote:ok, on shutdown it sends a PART 0,0 out. Just use bind out and block that.

Might cause some bad side effects.
Yeh i found it but, How to i trace the "PART 0,0" thing


I don´t get that one i log what happens in out

Code: Select all

bind out - {*} [namespace current]::isRestartPart

proc isRestartPart {1 2 3} {
  putlog "$1 / $2 / $3"
}

/ Slaktarn
Post Reply