src/chanserv.c: Fix copyright years and !uset autoinvite behavior.
authorMichael Poole <mdpoole@troilus.org>
Wed, 23 Jul 2008 01:57:00 +0000 (21:57 -0400)
committerMichael Poole <mdpoole@troilus.org>
Wed, 23 Jul 2008 01:57:00 +0000 (21:57 -0400)
src/chanserv.c

index d9fb9b876012947c2f149cf9222f04fa2b4db04c..345951d44d45a1ba1110959a2fac6bd88999be56 100644 (file)
@@ -1,5 +1,5 @@
 /* chanserv.c - Channel service bot
- * Copyright 2000-2006 srvx Development Team
+ * Copyright 2000-2007 srvx Development Team
  *
  * This file is part of srvx.
  *
@@ -5881,7 +5881,7 @@ static MODCMD_FUNC(user_opt_noautoop)
 
 static MODCMD_FUNC(user_opt_autoinvite)
 {
-    if(check_user_level(channel, user, lvlInviteMe, 1, 0))
+    if((argc > 1) && !check_user_level(channel, user, lvlInviteMe, 1, 0))
     {
         reply("CSMSG_LOW_CHANNEL_ACCESS", channel->name);
     }