added info function and did fixed privmsg command handling