projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
do not filter access levels if not wanted (show database errors)
[NeonServV5.git]
/
src
/
modules
/
NeonServ.mod
/
cmd_neonserv_users.c
diff --git
a/src/modules/NeonServ.mod/cmd_neonserv_users.c
b/src/modules/NeonServ.mod/cmd_neonserv_users.c
index 5f032e6b2bc3bc1b1dbc095a8bf0092f4a69e4c1..1ab7d478acbfaf5d6196158b12a17e464b87b45a 100644
(file)
--- a/
src/modules/NeonServ.mod/cmd_neonserv_users.c
+++ b/
src/modules/NeonServ.mod/cmd_neonserv_users.c
@@
-1,4
+1,4
@@
-/* cmd_neonserv_users.c - NeonServ v5.
3
+/* cmd_neonserv_users.c - NeonServ v5.
6
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
@@
-44,11
+44,11
@@
CMD_BIND(neonserv_cmd_users) {
}
struct neonserv_cmd_users_cache *cache = malloc(sizeof(*cache));
if (!cache) {
}
struct neonserv_cmd_users_cache *cache = malloc(sizeof(*cache));
if (!cache) {
- p
error("malloc() failed"
);
+ p
rintf_log("neonserv", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__
);
return;
}
cache->client = client;
return;
}
cache->client = client;
- cache->textclient =
getTextBot()
;
+ cache->textclient =
textclient
;
cache->user = user;
cache->usermask = (usermask ? strdup(usermask) : NULL);
cache->min_access = min_access;
cache->user = user;
cache->usermask = (usermask ? strdup(usermask) : NULL);
cache->min_access = min_access;
@@
-86,7
+86,7
@@
static void neonserv_cmd_users_async1(struct ClientSocket *client, struct Client
table_add(table, content);
while ((row = mysql_fetch_row(res)) != NULL) {
caccess = atoi(row[0]);
table_add(table, content);
while ((row = mysql_fetch_row(res)) != NULL) {
caccess = atoi(row[0]);
- if((!usermask || !match(usermask, row[1])) &&
caccess >= min_access && caccess <= max_access
) {
+ if((!usermask || !match(usermask, row[1])) &&
(min_access > 1 && caccess >= min_access) && (max_access < 500 && caccess <= max_access)
) {
content[0] = row[0];
content[1] = row[1];
is_here = 0;
content[0] = row[0];
content[1] = row[1];
is_here = 0;