IRC part of the core and initial script work