From af8c61feb3cc1a0ffe75415ff9b1cdcb20376ae8 Mon Sep 17 00:00:00 2001 From: unknown_lamer Date: Wed, 1 Jun 2005 11:12:41 +0000 Subject: [PATCH] [project @ 2005-06-01 11:12:41 by unknown_lamer] Added bot:protection/[none|ban|kick|deop] and bot:aop/[yes|no] constants to the Scheme scripting interface --- ChangeLog | 9 +++++++++ NEWS | 5 +++++ TODO | 4 ++-- configure.ac | 2 +- source/Interp.C | 14 +++++++++++++- 5 files changed, 30 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index e266572..501e8b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ +2005-06-01 Clinton Ebadi + + * source/Interp.C (interp_init_helper): Added + bot:protection/[none|ban|kick|deop] constants to Scheme + (interp_init_helper): Added bot:aop/[yes|no] constants + 2005-05-31 Clinton Ebadi + * configure.ac: Release Bobot++ 2.1.7 + Changed version to 2.18.CVS + * source/UserList.C (save): Remove workaround for BUG #2 * source/Parser.C (parse001): make realNick lowercase when doing diff --git a/NEWS b/NEWS index ce7be7a..0cd9df2 100644 --- a/NEWS +++ b/NEWS @@ -10,6 +10,11 @@ IMPORTANT NOTES: ====== The News ===================================================== ===================================================================== +Version 2.1.8: + +- Added bot:protection/[none|ban|kick|deop] and bot:aop/[yes|no] + constants to the Scheme scripting interface + Version 2.1.7: - Fixed a number of small bugs and corner cases - Should compile without warnings (GCC 3.4) diff --git a/TODO b/TODO index 1250161..51e93b6 100644 --- a/TODO +++ b/TODO @@ -4,6 +4,8 @@ Done: * Abstract DCC support so that DCC FILE may be easily implemented * Wrote config database class * Compile without warnings +* bot:protection/[none|no-ban|no-kick|no-deop] constants +* bot:aop/[no|yes] constants 2.2: * Finish Texinfo manual @@ -14,8 +16,6 @@ Done: (e.g. bot:send-CTCP to send a CTCP message) * Add util functions for doing stuff like quoting CTCP messages * Finish adding hooks/send hooks -* bot:protection/[none|no-ban|no-kick|no-deop] constants -* bot:aop/[no|yes] constants * Add DCC_CHAT_END hook for Scheme 2.4: diff --git a/configure.ac b/configure.ac index a64d81c..aed0c21 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ dnl Process this file with autoconf to produce a configure script. AC_PRERQ(2.50) -AC_INIT([Bobot++], [2.1.6CVS], [clinton@unknownlamer.org], [bobotpp]) +AC_INIT([Bobot++], [2.1.8CVS], [clinton@unknownlamer.org], [bobotpp]) AC_LANG([C++]) AM_INIT_AUTOMAKE AM_CONFIG_HEADER(config.h) diff --git a/source/Interp.C b/source/Interp.C index 3bd757b..68d9a56 100644 --- a/source/Interp.C +++ b/source/Interp.C @@ -73,6 +73,17 @@ interp_init_helper (void* unused) scm_c_define ("bot:user-trusted", scm_long2num (User::TRUSTED_USER)); scm_c_define ("bot:user-friend", scm_long2num (User::FRIEND)); scm_c_define ("bot:user-master", scm_long2num (User::MASTER)); + + // protection + scm_c_define ("bot:protection/none", scm_long2num (User::NO_PROT)); + scm_c_define ("bot:protection/no-ban", scm_long2num (User::NO_BAN)); + scm_c_define ("bot:protection/no-kick", scm_long2num (User::NO_KICK)); + scm_c_define ("bot:protection/no-deop", scm_long2num (User::NO_DEOP)); + + // auto-op + scm_c_define ("bot:aop/yes", scm_long2num (true)); + scm_c_define ("bot:aop/no", scm_long2num (false)); + // sys-dir scm_c_define ("bot:sys-scripts-dir", scm_makfrom0str (String(PREFIX) + @@ -118,7 +129,8 @@ interp_init_helper (void* unused) scm_c_define_gsubr ("bot:addshit", 3, 2, 0, (SCMFunc)ScriptCommands::AddShit); bot_new_procedure ("bot:ban", (SCMFunc)ScriptCommands::Action, 2, 0, 0); - bot_new_procedure ("bot:change-command-level", (SCMFunc)ScriptCommands::ChangeCommandLevel, + bot_new_procedure ("bot:change-command-level", + (SCMFunc)ScriptCommands::ChangeCommandLevel, 2, 0, 0); bot_new_procedure ("bot:cycle", (SCMFunc)ScriptCommands::Action, 1, 0, 0); bot_new_procedure ("bot:deban", (SCMFunc)ScriptCommands::Deban, 2, 0, 0); -- 2.20.1