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
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.