separate some definitions into ircdefs.h