-Fix chat system not deleting all chan on logout. tid:80999
-Upd @mapinfo to count number of vendors in map
-Upd getrandgroupitem to check if valid itemit returned.
-Cleanup and KR style

git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17232 54d463be-8e91-2dee-dedb-b68131a5f0ec