Fix a bug in on_nick in modules/seen.pm and restructure a bit