always allow users to invite clones (override invite restrictions)
authorpk910 <philipp@zoelle1.de>
Sat, 19 May 2012 02:36:06 +0000 (04:36 +0200)
committerpk910 <philipp@zoelle1.de>
Sat, 19 May 2012 02:36:06 +0000 (04:36 +0200)
src/modules/NeonServ.mod/cmd_neonserv_invite.c

index d241ff77d9b191e8a7199da7520ed6fa966740cd..307cccd4b3c55fb4304ee4eda611703d180249e0 100644 (file)
@@ -97,7 +97,7 @@ static USERAUTH_CALLBACK(neonserv_cmd_invite_nick_lookup) {
 }
 
 static void neonserv_cmd_invite_async1(struct ClientSocket *client, struct ClientSocket *textclient, struct UserNode *user, struct ChanNode *chan, struct Event *event, char *nick, char *auth) {
-    if(auth) {
+    if(auth && (!(user->flags & USERFLAG_ISAUTHED) || stricmp(auth, user->auth))) {
         MYSQL_RES *res;
         MYSQL_ROW row;
         printf_mysql_query("SELECT `user_id`, `user_block_invites` FROM `users` WHERE `user_user` = '%s'", escape_string(auth));