From 700a585b1bb38a9dc0ac3e749083250d405488f8 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 28 Aug 2011 15:46:15 -0400 Subject: Allow modules to add their own channel levels --- data/chanserv.example.conf | 8 ++++---- data/tables.sql | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'data') diff --git a/data/chanserv.example.conf b/data/chanserv.example.conf index cc2bbaef6..d9bd6eb0c 100644 --- a/data/chanserv.example.conf +++ b/data/chanserv.example.conf @@ -184,8 +184,8 @@ chanserv * The level "disabled" is a special level that means the level is disabled, even from people * with founder level access. */ - level_change = 10 - level_list = 1 + level_access_change = 10 + level_access_list = 1 level_akick = 10 level_assign = "founder" level_autohalfop = 4 @@ -226,8 +226,8 @@ chanserv * * These flags are used by the chanserv/flags access system. */ - flag_change = "f" - flag_list = "l" + flag_access_change = "f" + flag_access_list = "l" flag_akick = "K" flag_assign = "s" flag_autohalfop = "H" diff --git a/data/tables.sql b/data/tables.sql index 69e694a32..ec99b7479 100644 --- a/data/tables.sql +++ b/data/tables.sql @@ -140,9 +140,9 @@ CREATE TABLE IF NOT EXISTS `anope_cs_info_metadata` ( CREATE TABLE IF NOT EXISTS `anope_cs_levels` ( `channel` varchar(255) NOT NULL DEFAULT '', - `position` int(11) NOT NULL DEFAULT '0', + `name` varchar(255) NOT NULL DEFAULT '', `level` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `channel` (`channel`,`position`) + UNIQUE KEY `channel` (`channel`,`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- cgit