1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 02:16:38 +02:00

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
This commit is contained in:
geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
2005-09-30 11:11:36 +00:00
parent 0281b73406
commit 9416d19204
10 changed files with 25 additions and 26 deletions
+1
View File
@@ -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]
+2 -2
View File
@@ -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
+2 -7
View File
@@ -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;
+9 -9
View File
@@ -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* */
+1 -1
View File
@@ -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)
+1 -2
View File
@@ -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)
+2 -2
View File
@@ -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)
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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))
+5 -1
View File
@@ -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