/***********************************************************************
X3 ChangeLog
+2006-11-30 Alex Schumann <rubin@afternet.org>
+
+ * src/chanserv.c: Modified .myaccess such that if you give it your own
+ account when you are not a helper, it still works. (Requested by
+ Jigsy)
+
+ * src/nickserv.help: Corrected the help file to feed oregister based
+ on email_required instead of email_enabled
+
2006-10-18 Neil Spierling <sirvulcan@gmail.com>
* src/opserv.c: Minor cosmetic error noticed by Raisk. If doing an
if(argc < 2)
target_handle = user->handle_info;
- else if(!IsHelping(user))
+ else if(!(target_handle = modcmd_get_handle_info(user, argv[1])))
+ return 0;
+ else if(!IsHelping(user) && target_handle != user->handle_info)
{
reply("CSMSG_MYACCESS_SELF_ONLY", argv[0]);
return 0;
}
- else if(!(target_handle = modcmd_get_handle_info(user, argv[1])))
- return 0;
-
if(!target_handle->channels)
{
reply("CSMSG_SQUAT_ACCESS", target_handle->handle);
"$uSee Also:$u oaddmask");
"OREGISTER" {
"/services/nickserv/disable_nicks" {
- "/services/nickserv/email_enabled" (
+ "/services/nickserv/email_required" (
"/msg $N@$s OREGISTER <account> <password> <email> [user@host] [nick]",
"Registers an account for nick with $b$N$b using the specified account name, password, email address and user@host. If the nick of an online user is specified, then they will be logged in, and that user's user@host is used if you don't specify one. If no nickname or hostmask is used, it uses a default hostmask, or adds one when they first authenticate.",
"$uSee Also:$u ounregister, oaddmask, oset"
);
- "!/services/nickserv/email_enabled" (
+ "!/services/nickserv/email_required" (
"/msg $N@$s OREGISTER <account> <password> [user@host] [nick]",
"Registers an account for nick with $b$N$b using the specified account name, password, email address and user@host. If the nick of an online user is specified, then they will be logged in, and that user's user@host is used if you don't specify one. If no nickname or hostmask is used, it uses a default hostmask, or adds one when they first authenticate.",
"$uSee Also:$u ounregister, oaddmask, oset"
);
};
"!/services/nickserv/disable_nicks" {
- "/services/nickserv/email_enabled" (
+ "/services/nickserv/email_required" (
"/msg $N@$s OREGISTER <account> <password> <email> [user@host] [nick]",
"Registers an account for nick with $b$N$b using the specified account name, password, email address and user@host. If the nick of an online user is specified, then they will be logged in, and that user's user@host is used if you don't specify one. If no nickname or hostmask is used, it uses a default hostmask, or adds one when they first authenticate.",
"$uSee Also:$u oregnick, ounregister, ounregnick, oaddmask, oset"
);
- "!/services/nickserv/email_enabled" (
+ "!/services/nickserv/email_required" (
"/msg $N@$s OREGISTER <account> <password> [user@host] [nick]",
"Registers an account for nick with $b$N$b using the specified account name, password, email address and user@host. If the nick of an online user is specified, then they will be logged in, and that user's user@host is used if you don't specify one. If no nickname or hostmask is used, it uses a default hostmask, or adds one when they first authenticate.",
"$uSee Also:$u oregnick, ounregister, ounregnick, oaddmask, oset"