projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
740a836
)
some variable fixes
author
pk910
<philipp@zoelle1.de>
Sat, 20 Aug 2011 07:22:16 +0000
(09:22 +0200)
committer
pk910
<philipp@zoelle1.de>
Sat, 20 Aug 2011 07:22:16 +0000
(09:22 +0200)
cmd_neonserv_a.c
patch
|
blob
|
history
cmd_neonserv_clvl.c
patch
|
blob
|
history
diff --git
a/cmd_neonserv_a.c
b/cmd_neonserv_a.c
index 6c1387a5079abcf9c660cd72d082a298e5ebf9c3..d7ae550bcdf5ade990be16ef49d92f3c5a60d50b 100644
(file)
--- a/
cmd_neonserv_a.c
+++ b/
cmd_neonserv_a.c
@@
-25,7
+25,7
@@
static CMD_BIND(neonserv_cmd_a) {
cache->user = user;
cache->chan = chan;
cache->nick = strdup(argv[0]);
cache->user = user;
cache->chan = chan;
cache->nick = strdup(argv[0]);
- get_userauth(
c
user, neonserv_cmd_a_nick_lookup, cache);
+ get_userauth(user, neonserv_cmd_a_nick_lookup, cache);
} else
neonserv_cmd_a_async1(client, getTextBot(), user, chan, user->nick, user->auth, user);
}
} else
neonserv_cmd_a_async1(client, getTextBot(), user, chan, user->nick, user->auth, user);
}
diff --git
a/cmd_neonserv_clvl.c
b/cmd_neonserv_clvl.c
index 386a73b26b4b58bc0fb948b9192c41f02745a62c..c41fa5015d2cf7431ec935477bf27ce8efe7b42c 100644
(file)
--- a/
cmd_neonserv_clvl.c
+++ b/
cmd_neonserv_clvl.c
@@
-16,8
+16,6
@@
struct neonserv_cmd_clvl_cache {
static CMD_BIND(neonserv_cmd_clvl) {
int caccess;
static CMD_BIND(neonserv_cmd_clvl) {
int caccess;
- MYSQL_RES *res;
- MYSQL_ROW row;
check_mysql();
checkChannelAccess(user, chan, "channel_canclvl", 1, 0);
caccess = atoi(argv[1]);
check_mysql();
checkChannelAccess(user, chan, "channel_canclvl", 1, 0);
caccess = atoi(argv[1]);
@@
-89,7
+87,7
@@
static void neonserv_cmd_clvl_async1(struct ClientSocket *client, struct ClientS
if ((row = mysql_fetch_row(res)) != NULL) {
//clvl
if(atoi(row[0]) >= getChannelAccess(user, chan, 1)) {
if ((row = mysql_fetch_row(res)) != NULL) {
//clvl
if(atoi(row[0]) >= getChannelAccess(user, chan, 1)) {
- reply(cache->textclient,
cache->
user, "NS_USER_OUTRANKED", nick);
+ reply(cache->textclient, user, "NS_USER_OUTRANKED", nick);
return;
}
printf_mysql_query("UPDATE `chanusers` SET `chanuser_access` = '%d' WHERE `chanuser_id` = '%s'", caccess, row[1]);
return;
}
printf_mysql_query("UPDATE `chanusers` SET `chanuser_access` = '%d' WHERE `chanuser_id` = '%s'", caccess, row[1]);