mirror of
https://github.com/anope/anope.git
synced 2026-07-01 01:46:39 +02:00
BUILD : 1.7.14 (1073) BUGS : N/A NOTES : Added a string privmsg option, which can force services to only accept /msg nick@host
git-svn-id: svn://svn.anope.org/anope/trunk@1073 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@797 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
74cc91636a
commit
90252bbecc
@@ -6,6 +6,7 @@ Provided by Anope Dev. <dev@anope.org> - 2006
|
||||
06/22 A Ability for ircd modules to set extra modes on id. [ #00]
|
||||
06/22 A Support startup flag. [ #00]
|
||||
06/21 A Module version check. [ #00]
|
||||
06/25 A Optional strict privmsg format. [ #00]
|
||||
04/08 F Fixed Charybdis support on win32. [#487]
|
||||
04/08 F Fixed thread stuff on windows. [#488]
|
||||
04/08 F Fixed SGLine stuff on inspircd (not supported). [#489]
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
Anope Version S V N
|
||||
--------------------
|
||||
** ADDED CONFIGURATION DIRECTIVES **
|
||||
# UseStrictPrivMsg [OPTIONAL]
|
||||
# Using this directive will force services to only respond to privmsgs
|
||||
# addressed to Nick@ServerName - e.g. NickServ@localhost.net.
|
||||
# This should be used on conjunction with ircd aliases.
|
||||
#
|
||||
|
||||
#UseStrictPrivMsg
|
||||
|
||||
# NSResendDelay <time> [RECOMMENDED]
|
||||
# Sets the minimum length of time between consecutive uses of the
|
||||
# RESEND command. If not given, this restriction is disabled (note
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
Anope Version S V N
|
||||
--------------------
|
||||
*** New Strings:
|
||||
INVALID_TARGET
|
||||
|
||||
*** Mod Strings:
|
||||
|
||||
|
||||
@@ -472,6 +472,14 @@ ForceForbidReason
|
||||
|
||||
#UsePrivmsg
|
||||
|
||||
# UseStrictPrivMsg [OPTIONAL]
|
||||
# Using this directive will force services to only respond to privmsgs
|
||||
# addressed to Nick@ServerName - e.g. NickServ@localhost.net.
|
||||
# This should be used on conjunction with ircd aliases.
|
||||
#
|
||||
|
||||
#UseStrictPrivMsg
|
||||
|
||||
# DumpCore [OPTIONAL]
|
||||
#
|
||||
# Setting this directive will make Anope dump core when a segmentation
|
||||
|
||||
@@ -323,6 +323,7 @@ E int KeepLogs;
|
||||
E int KeepBackups;
|
||||
E int ForceForbidReason;
|
||||
E int UsePrivmsg;
|
||||
E int UseStrictPrivMsg;
|
||||
E int DumpCore;
|
||||
E int LogUsers;
|
||||
E int NickRegDelay;
|
||||
|
||||
@@ -165,6 +165,8 @@ READ_ONLY_MODE
|
||||
Noticia: Els serveis estan en mode read-only; Els canvis no seran guardats!
|
||||
PASSWORD_INCORRECT
|
||||
Clau incorrecta.
|
||||
INVALID_TARGET
|
||||
"/msg %s" is no longer supported. Use "/msg %s@%s" or "/%s" instead.
|
||||
|
||||
# What's the difference between "Access denied" and "Permission denied"?
|
||||
# Very little; you can safely make them the same message with no real loss
|
||||
|
||||
@@ -183,6 +183,8 @@ READ_ONLY_MODE
|
||||
|
||||
PASSWORD_INCORRECT
|
||||
Falsches Passwort.
|
||||
INVALID_TARGET
|
||||
"/msg %s" is no longer supported. Use "/msg %s@%s" or "/%s" instead.
|
||||
|
||||
# What's the difference between "Access denied" and "Permission denied"?
|
||||
# Very little; you can safely make them the same message with no real loss
|
||||
|
||||
@@ -164,6 +164,8 @@ READ_ONLY_MODE
|
||||
Notice: Services is in read-only mode; changes will not be saved!
|
||||
PASSWORD_INCORRECT
|
||||
Password incorrect.
|
||||
INVALID_TARGET
|
||||
"/msg %s" is no longer supported. Use "/msg %s@%s" or "/%s" instead.
|
||||
|
||||
# What's the difference between "Access denied" and "Permission denied"?
|
||||
# Very little; you can safely make them the same message with no real loss
|
||||
|
||||
@@ -164,6 +164,8 @@ READ_ONLY_MODE
|
||||
Noticia: Los Servicios estan en modo read-only; Los cambios no seran salvados!
|
||||
PASSWORD_INCORRECT
|
||||
Clave incorrecta.
|
||||
INVALID_TARGET
|
||||
"/msg %s" is no longer supported. Use "/msg %s@%s" or "/%s" instead.
|
||||
|
||||
# What's the difference between "Access denied" and "Permission denied"?
|
||||
# Very little; you can safely make them the same message with no real loss
|
||||
|
||||
@@ -170,6 +170,8 @@ READ_ONLY_MODE
|
||||
Note: les Services sont en mode lecture-seule; les changements ne seront pas sauvegardés!
|
||||
PASSWORD_INCORRECT
|
||||
Mot de passe incorrect.
|
||||
INVALID_TARGET
|
||||
"/msg %s" is no longer supported. Use "/msg %s@%s" or "/%s" instead.
|
||||
|
||||
# What's the difference between "Access denied" and "Permission denied"?
|
||||
# Very little; you can safely make them the same message with no real loss
|
||||
|
||||
@@ -164,6 +164,8 @@ READ_ONLY_MODE
|
||||
Óçìåßùóç: Ïé õðçñåóßåò åßíáé ìüíï áíáãíþóéìåò; ïé üðïéåò áëëáãÝò Ýãéíáí èá ÷áèïýí!
|
||||
PASSWORD_INCORRECT
|
||||
ËÜèïò êùäéêüò.
|
||||
INVALID_TARGET
|
||||
"/msg %s" is no longer supported. Use "/msg %s@%s" or "/%s" instead.
|
||||
|
||||
# What's the difference between "Access denied" and "Permission denied"?
|
||||
# Very little; you can safely make them the same message with no real loss
|
||||
|
||||
@@ -172,6 +172,8 @@ READ_ONLY_MODE
|
||||
Megjegyzés: A Szervíz csak olvasás módban fut!
|
||||
PASSWORD_INCORRECT
|
||||
Hibás jelszó.
|
||||
INVALID_TARGET
|
||||
"/msg %s" is no longer supported. Use "/msg %s@%s" or "/%s" instead.
|
||||
|
||||
# Mi a különbség a "Hozzáférés megtagadva" és az "Engedély letiltva" között?
|
||||
# Nagyon kicsi; ha ugyanazt az üzenetet írod mindkettõre, nem igazán veszít
|
||||
|
||||
@@ -166,6 +166,8 @@ READ_ONLY_MODE
|
||||
Nota: i Services sono in modalità read-only; le modifiche non saranno salvate!
|
||||
PASSWORD_INCORRECT
|
||||
Password errata.
|
||||
INVALID_TARGET
|
||||
"/msg %s" is no longer supported. Use "/msg %s@%s" or "/%s" instead.
|
||||
|
||||
# What's the difference between "Access denied" and "Permission denied"?
|
||||
# Very little; you can safely make them the same message with no real loss
|
||||
|
||||
@@ -166,6 +166,8 @@ READ_ONLY_MODE
|
||||
Let op: Services zijn in alleen-lezen mode; veranderingen worden niet opgeslagen!
|
||||
PASSWORD_INCORRECT
|
||||
Wachtwoord incorrect.
|
||||
INVALID_TARGET
|
||||
"/msg %s" is no longer supported. Use "/msg %s@%s" or "/%s" instead.
|
||||
|
||||
# What's the difference between "Access denied" and "Permission denied"?
|
||||
# Very little; you can safely make them the same message with no real loss
|
||||
|
||||
@@ -178,6 +178,8 @@ READ_ONLY_MODE
|
||||
odczytu - zmiany nie bêd± zapisywane!
|
||||
PASSWORD_INCORRECT
|
||||
Nieprawid³owe has³o.
|
||||
INVALID_TARGET
|
||||
"/msg %s" is no longer supported. Use "/msg %s@%s" or "/%s" instead.
|
||||
|
||||
# What's the difference between "Access denied" and "Permission denied"?
|
||||
# Very little; you can safely make them the same message with no real loss
|
||||
|
||||
@@ -174,6 +174,8 @@ READ_ONLY_MODE
|
||||
Atenção: Os services estão no modo somente leitura; as mudanças não serão salvas!
|
||||
PASSWORD_INCORRECT
|
||||
Senha incorreta.
|
||||
INVALID_TARGET
|
||||
"/msg %s" is no longer supported. Use "/msg %s@%s" or "/%s" instead.
|
||||
|
||||
# What's the difference between "Access denied" and "Permission denied"?
|
||||
# Very little; you can safely make them the same message with no real loss
|
||||
|
||||
@@ -170,6 +170,8 @@ READ_ONLY_MODE
|
||||
Ïðèìå÷àíèå: ñåé÷àñ ñåðâèñû ðàáîòàþò â ðåæèìå òîëüêî-÷òåíèå; èçìåíåíèÿ ÍÅ áóäóò ñîõðàíåíû!
|
||||
PASSWORD_INCORRECT
|
||||
Íåâåðíûé ïàðîëü.
|
||||
INVALID_TARGET
|
||||
"/msg %s" is no longer supported. Use "/msg %s@%s" or "/%s" instead.
|
||||
|
||||
# What's the difference between "Access denied" and "Permission denied"?
|
||||
# Very little; you can safely make them the same message with no real loss
|
||||
|
||||
@@ -168,6 +168,8 @@ READ_ONLY_MODE
|
||||
Not: Servisler read-only modunda; deðiþiklikler kaydedilmeyecektir!
|
||||
PASSWORD_INCORRECT
|
||||
Þifre geçersiz.
|
||||
INVALID_TARGET
|
||||
"/msg %s" is no longer supported. Use "/msg %s@%s" or "/%s" instead.
|
||||
|
||||
# What's the difference between "Access denied" and "Permission denied"?
|
||||
# Very little; you can safely make them the same message with no real loss
|
||||
|
||||
@@ -113,6 +113,7 @@ int KeepLogs;
|
||||
int KeepBackups;
|
||||
int ForceForbidReason;
|
||||
int UsePrivmsg;
|
||||
int UseStrictPrivMsg;
|
||||
int DumpCore;
|
||||
int LogUsers;
|
||||
int NickRegDelay;
|
||||
@@ -610,6 +611,7 @@ Directive directives[] = {
|
||||
{"UpdateTimeout", {{PARAM_TIME, PARAM_RELOAD, &UpdateTimeout}}},
|
||||
{"UseMail", {{PARAM_SET, PARAM_RELOAD, &UseMail}}},
|
||||
{"UsePrivmsg", {{PARAM_SET, PARAM_RELOAD, &UsePrivmsg}}},
|
||||
{"UseStrictPrivMsg", {{PARAM_SET, PARAM_RELOAD, &UseStrictPrivMsg}}},
|
||||
{"UserKey1", {{PARAM_POSINT, PARAM_RELOAD, &UserKey1}}},
|
||||
{"UserKey2", {{PARAM_POSINT, PARAM_RELOAD, &UserKey2}}},
|
||||
{"UserKey3", {{PARAM_POSINT, PARAM_RELOAD, &UserKey3}}},
|
||||
|
||||
+7
-1
@@ -139,7 +139,6 @@ int m_privmsg(char *source, char *receiver, char *msg)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
/* Check if we should ignore. Operators always get through. */
|
||||
if (allow_ignore && !is_oper(u)) {
|
||||
IgnoreData *ign = get_ignore(source);
|
||||
@@ -156,6 +155,13 @@ int m_privmsg(char *source, char *receiver, char *msg)
|
||||
*s++ = 0;
|
||||
if (stricmp(s, ServerName) != 0)
|
||||
return MOD_CONT;
|
||||
} else if (UseStrictPrivMsg) {
|
||||
if (debug) {
|
||||
alog("Ignored PRIVMSG without @ from %s", source);
|
||||
}
|
||||
notice_lang(receiver, u, INVALID_TARGET, receiver, receiver,
|
||||
ServerName, receiver);
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
starttime = time(NULL);
|
||||
|
||||
+5
-1
@@ -9,10 +9,14 @@ VERSION_MAJOR="1"
|
||||
VERSION_MINOR="7"
|
||||
VERSION_PATCH="14"
|
||||
VERSION_EXTRA=""
|
||||
VERSION_BUILD="1072"
|
||||
VERSION_BUILD="1073"
|
||||
|
||||
# $Log$
|
||||
#
|
||||
# BUILD : 1.7.14 (1073)
|
||||
# BUGS : N/A
|
||||
# NOTES : Added a string privmsg option, which can force services to only accept /msg nick@host
|
||||
#
|
||||
# BUILD : 1.7.14 (1072)
|
||||
# BUGS :
|
||||
# NOTES : Fixed a mistake in en_us.nl and updated inspircd support module
|
||||
|
||||
Reference in New Issue
Block a user