added a function for obtaining and formatting messages
finally found the right way to register on irc server
xml config reader prototype