diff options
author | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-09-30 11:11:36 +0000 |
---|---|---|
committer | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-09-30 11:11:36 +0000 |
commit | 9416d192045ebf77c4b3d04cd3f7d2ee69deb61d (patch) | |
tree | 5e4beed51f286ac8fc62ad48bc08b9438437f9f5 | |
parent | 0281b73406a3f4094f9ccb7265be06138a3ca10c (diff) |
BUILD : 1.7.11 (904) BUGS : NOTES : Stripping fantasy char from fantasy commands now
git-svn-id: svn://svn.anope.org/anope/trunk@904 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@650 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | docs/EVENTS | 4 | ||||
-rw-r--r-- | src/botserv.c | 9 | ||||
-rw-r--r-- | src/chanserv.c | 18 | ||||
-rw-r--r-- | src/core/bs_fantasy_kick.c | 2 | ||||
-rw-r--r-- | src/core/bs_fantasy_kickban.c | 3 | ||||
-rw-r--r-- | src/core/bs_fantasy_owner.c | 4 | ||||
-rw-r--r-- | src/core/bs_fantasy_seen.c | 2 | ||||
-rw-r--r-- | src/core/bs_fantasy_unban.c | 2 | ||||
-rw-r--r-- | version.log | 6 |
10 files changed, 25 insertions, 26 deletions
@@ -3,6 +3,7 @@ Anope Version S V N Provided by Anope Dev. <dev@anope.org> - 2005 09/29 A Configuration option to change fantasy command prefix character. [ #00] 09/28 A Event for fantasy commands triggered without channel access. [ #00] +09/30 F Stripping fantasy character from fantasy commands. [ #00] 09/28 F Made module (un)loading code more friendly for modularized core. [ #00] 09/28 F NickServ SASET didn't fill the nick in the 'not registered' line. [ #00] diff --git a/docs/EVENTS b/docs/EVENTS index 47a168387..8a3cd502e 100644 --- a/docs/EVENTS +++ b/docs/EVENTS @@ -191,7 +191,7 @@ Anope Internal Events EVENT_BOT_FANTASY A fantasy command of the bot has been triggered. This event should be used to create your own fantasy commands. - av[0] The fantasy command that has been triggered with leading '!'. + av[0] The fantasy command that has been triggered without leading '!'. av[1] The nickname of the user that has triggered the fantasy command. av[2] The name of the channel the fantasy command has been triggered @@ -206,7 +206,7 @@ Anope Internal Events trigger if someone with access has triggered a fantasy command; use EVENT_BOT_FANTASY for those. Hook to both events to catch both event triggers. - av[0] The fantasy command that has been triggered with leading '!'. + av[0] The fantasy command that has been triggered without leading '!'. av[1] The nickname of the user that has triggered the fantasy command. av[2] The name of the channel the fantasy command has been triggered diff --git a/src/botserv.c b/src/botserv.c index 735e608c4..39fc06d3e 100644 --- a/src/botserv.c +++ b/src/botserv.c @@ -407,13 +407,8 @@ void botchanmsgs(User * u, ChannelInfo * ci, char *buf) char *params = strtok(NULL, ""); char *event_name = EVENT_BOT_FANTASY_NO_ACCESS; - /* Warning: Hack Ahead - * To allow older modules to still work safely with the fantasy - * events, we replace the first char with '!' so that the cmd will - * be !trigger, and not *trigger or whatever, which will confuse - * them. Should be replaced after 1.8 -GD - */ - cmd[0] = '!'; + /* Strip off the fantasy character */ + cmd++; if (check_access(u, ci, CA_FANTASIA)) event_name = EVENT_BOT_FANTASY; diff --git a/src/chanserv.c b/src/chanserv.c index a2e2f6b0a..6c8147bb6 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -105,15 +105,15 @@ LevelInfo levelinfo[] = { int levelinfo_maxwidth = 0; CSModeUtil csmodeutils[] = { - { "DEOP", "!deop", "-o", CI_OPNOTICE, CA_OPDEOP, CA_OPDEOPME }, - { "OP", "!op", "+o", CI_OPNOTICE, CA_OPDEOP, CA_OPDEOPME }, - { "DEVOICE", "!devoice", "-v", 0 , CA_VOICE, CA_VOICEME }, - { "VOICE", "!voice", "+v", 0 , CA_VOICE, CA_VOICEME }, - { "DEHALFOP", "!dehalfop", "-h", 0 , CA_HALFOP, CA_HALFOPME }, - { "HALFOP", "!halfop", "+h", 0 , CA_HALFOP, CA_HALFOPME }, - { "DEPROTECT", "", "", 0 , CA_PROTECT, CA_PROTECTME }, - { "PROTECT", "", "", 0 , CA_PROTECT, CA_PROTECTME }, - { NULL } + { "DEOP", "deop", "-o", CI_OPNOTICE, CA_OPDEOP, CA_OPDEOPME }, + { "OP", "op", "+o", CI_OPNOTICE, CA_OPDEOP, CA_OPDEOPME }, + { "DEVOICE", "devoice", "-v", 0, CA_VOICE, CA_VOICEME }, + { "VOICE", "voice", "+v", 0, CA_VOICE, CA_VOICEME }, + { "DEHALFOP", "dehalfop", "-h", 0, CA_HALFOP, CA_HALFOPME }, + { "HALFOP", "halfop", "+h", 0, CA_HALFOP, CA_HALFOPME }, + { "DEPROTECT", "", "", 0, CA_PROTECT, CA_PROTECTME }, + { "PROTECT", "", "", 0, CA_PROTECT, CA_PROTECTME }, + { NULL } }; /* *INDENT-ON* */ diff --git a/src/core/bs_fantasy_kick.c b/src/core/bs_fantasy_kick.c index 9bd2ac818..223ce909f 100644 --- a/src/core/bs_fantasy_kick.c +++ b/src/core/bs_fantasy_kick.c @@ -62,7 +62,7 @@ int do_fantasy(int argc, char **argv) if (argc < 3) return MOD_CONT; - if ((stricmp(argv[0], "!kick") == 0) || (stricmp(argv[0], "!k") == 0)) { + if ((stricmp(argv[0], "kick") == 0) || (stricmp(argv[0], "k") == 0)) { u = finduser(argv[1]); ci = cs_findchan(argv[2]); if (!u || !ci) diff --git a/src/core/bs_fantasy_kickban.c b/src/core/bs_fantasy_kickban.c index 8385f7175..5d978da56 100644 --- a/src/core/bs_fantasy_kickban.c +++ b/src/core/bs_fantasy_kickban.c @@ -62,8 +62,7 @@ int do_fantasy(int argc, char **argv) if (argc < 3) return MOD_CONT; - if ((stricmp(argv[0], "!kickban") == 0) - || (stricmp(argv[0], "!kb") == 0)) { + if ((stricmp(argv[0], "kickban") == 0) || (stricmp(argv[0], "kb") == 0)) { u = finduser(argv[1]); ci = cs_findchan(argv[2]); if (!u || !ci) diff --git a/src/core/bs_fantasy_owner.c b/src/core/bs_fantasy_owner.c index 7609fa8fc..bf4305dbf 100644 --- a/src/core/bs_fantasy_owner.c +++ b/src/core/bs_fantasy_owner.c @@ -66,7 +66,7 @@ int do_fantasy(int argc, char **argv) if (argc < 3) return MOD_CONT; - if (stricmp(argv[0], "!deowner") == 0) { + if (stricmp(argv[0], "deowner") == 0) { u = finduser(argv[1]); ci = cs_findchan(argv[2]); if (!u || !ci) @@ -74,7 +74,7 @@ int do_fantasy(int argc, char **argv) if (is_founder(u, ci)) bot_raw_mode(u, ci, ircd->ownerunset, u->nick); - } else if (stricmp(argv[0], "!owner") == 0) { + } else if (stricmp(argv[0], "owner") == 0) { u = finduser(argv[1]); ci = cs_findchan(argv[2]); if (!u || !ci) diff --git a/src/core/bs_fantasy_seen.c b/src/core/bs_fantasy_seen.c index 2a49cbcbb..c6cb63d8c 100644 --- a/src/core/bs_fantasy_seen.c +++ b/src/core/bs_fantasy_seen.c @@ -65,7 +65,7 @@ int do_fantasy(int argc, char **argv) if (argc < 4) return MOD_CONT; - if (stricmp(argv[0], "!seen") == 0) { + if (stricmp(argv[0], "seen") == 0) { u = finduser(argv[1]); ci = cs_findchan(argv[2]); if (!u || !ci) diff --git a/src/core/bs_fantasy_unban.c b/src/core/bs_fantasy_unban.c index 5f0429081..9e4005b9c 100644 --- a/src/core/bs_fantasy_unban.c +++ b/src/core/bs_fantasy_unban.c @@ -61,7 +61,7 @@ int do_fantasy(int argc, char **argv) if (argc < 3) return MOD_CONT; - if (stricmp(argv[0], "!unban") == 0) { + if (stricmp(argv[0], "unban") == 0) { u = finduser(argv[1]); ci = cs_findchan(argv[2]); if (!u || !ci || !check_access(u, ci, CA_UNBAN)) diff --git a/version.log b/version.log index 368d0b190..dfef70c00 100644 --- a/version.log +++ b/version.log @@ -9,10 +9,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="11" VERSION_EXTRA="-svn" -VERSION_BUILD="903" +VERSION_BUILD="904" # $Log$ # +# BUILD : 1.7.11 (904) +# BUGS : +# NOTES : Stripping fantasy char from fantasy commands now +# # BUILD : 1.7.11 (903) # BUGS : # NOTES : Added BSFantasyCharacter configuration option to change the fantasy prefix character |