Implemented topic handling and fixed a bug in nick-change detection and fixed a bug in prefix matching.