projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
35edc87
)
always allow users to invite clones (override invite restrictions)
author
pk910
<philipp@zoelle1.de>
Sat, 19 May 2012 02:36:06 +0000
(
04:36
+0200)
committer
pk910
<philipp@zoelle1.de>
Sat, 19 May 2012 02:36:06 +0000
(
04:36
+0200)
src/modules/NeonServ.mod/cmd_neonserv_invite.c
patch
|
blob
|
history
diff --git
a/src/modules/NeonServ.mod/cmd_neonserv_invite.c
b/src/modules/NeonServ.mod/cmd_neonserv_invite.c
index d241ff77d9b191e8a7199da7520ed6fa966740cd..307cccd4b3c55fb4304ee4eda611703d180249e0 100644
(file)
--- a/
src/modules/NeonServ.mod/cmd_neonserv_invite.c
+++ b/
src/modules/NeonServ.mod/cmd_neonserv_invite.c
@@
-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) {
}
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));
MYSQL_RES *res;
MYSQL_ROW row;
printf_mysql_query("SELECT `user_id`, `user_block_invites` FROM `users` WHERE `user_user` = '%s'", escape_string(auth));