this line: + (aconf->port) ? aconf->port :6667); and another line below it both hard code 6667. isn't there a #define for this? please don't hard code 6667! some of us do NOT use it! .mrg.