Moved line handling to IRCD.Logic