defining IrcChannel as a separate type