*implemented basic Chat Channel saving

*includes owner, banlist,announce,password, saving
*todo:
 -make it cacheble
 -add a filter to not save some addon spec channels
 -find someone who does these for me :)

--HG--
branch : trunk
This commit is contained in:
Rat
2009-07-18 22:15:56 +02:00
parent b7b3264cb5
commit 7166e8d26f
5 changed files with 146 additions and 6 deletions

View File

@@ -0,0 +1,14 @@
-- ----------------------------
-- Table structure for channels
-- ----------------------------
DROP TABLE IF EXISTS `channels`;
CREATE TABLE `channels` (
`m_name` text NOT NULL,
`m_team` int(10) unsigned NOT NULL,
`m_ownerGUID` int(11) unsigned NOT NULL default '0',
`m_announce` tinyint(1) unsigned NOT NULL default '0',
`m_moderate` tinyint(1) unsigned NOT NULL default '0',
`m_password` text,
`BannedList` longtext,
PRIMARY KEY (`m_name`(10),`m_team`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Access Requirements';