From: Michael Poole Date: Sat, 5 Jul 2008 12:14:04 +0000 (-0400) Subject: Fix SourceForge bug #1529487. X-Git-Tag: v1.4.0-rc3~8 X-Git-Url: http://git.pk910.de/?p=srvx.git;a=commitdiff_plain;h=c796be8483f68d8ec75aaec81920d9d0d0d787be Fix SourceForge bug #1529487. src/chanserv.c (CSMSG_LOW_CHANNEL_ACCESS): Be more specific. (user_opt_autoinvite): Tell the user if his access is too low for the option to have an effect. --- diff --git a/src/chanserv.c b/src/chanserv.c index 971fbd8..d9fb9b8 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -310,7 +310,7 @@ static const struct message_entry msgtab[] = { { "CSMSG_INVITING_YOU", "$b%s$b invites you to join %s." }, { "CSMSG_ALREADY_PRESENT", "%s is already in $b%s$b." }, { "CSMSG_YOU_ALREADY_PRESENT", "You are already in $b%s$b." }, - { "CSMSG_LOW_CHANNEL_ACCESS", "You lack sufficient access in %s to use this command." }, + { "CSMSG_LOW_CHANNEL_ACCESS", "You lack sufficient access in %s for $S to invite you." }, { "CSMSG_INFOLINE_TOO_LONG", "Your infoline may not exceed %u characters." }, { "CSMSG_BAD_INFOLINE", "You may not use the character \\%03o in your infoline." }, @@ -5881,6 +5881,10 @@ static MODCMD_FUNC(user_opt_noautoop) static MODCMD_FUNC(user_opt_autoinvite) { + if(check_user_level(channel, user, lvlInviteMe, 1, 0)) + { + reply("CSMSG_LOW_CHANNEL_ACCESS", channel->name); + } return user_binary_option("CSMSG_USET_AUTOINVITE", USER_AUTO_INVITE, CSFUNC_ARGS); }