projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** VERSION 5.6.0 ***
[NeonServV5.git]
/
src
/
modules
/
NeonServ.mod
/
cmd_neonserv_myaccess.c
diff --git
a/src/modules/NeonServ.mod/cmd_neonserv_myaccess.c
b/src/modules/NeonServ.mod/cmd_neonserv_myaccess.c
index b9f65811f197282e5a07f855a98ae057972f39fe..d1204f4055ffb028db2d2c82fb4e9b146e4ad085 100644
(file)
--- a/
src/modules/NeonServ.mod/cmd_neonserv_myaccess.c
+++ b/
src/modules/NeonServ.mod/cmd_neonserv_myaccess.c
@@
-1,4
+1,4
@@
-/* cmd_neonserv_myaccess.c - NeonServ v5.
3
+/* cmd_neonserv_myaccess.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,14
+44,14
@@
CMD_BIND(neonserv_cmd_myaccess) {
return;
}
cache->client = client;
return;
}
cache->client = client;
- cache->textclient =
getTextBot()
;
+ cache->textclient =
textclient
;
cache->user = user;
cache->chan = chan;
cache->nick = strdup(argv[0]);
cache->chanmatch = (chanmatch ? strdup(chanmatch) : NULL);
cache->user = user;
cache->chan = chan;
cache->nick = strdup(argv[0]);
cache->chanmatch = (chanmatch ? strdup(chanmatch) : NULL);
- get_userauth(user, neonserv_cmd_myaccess_nick_lookup, cache);
+ get_userauth(user,
module_id,
neonserv_cmd_myaccess_nick_lookup, cache);
} else
} else
- neonserv_cmd_myaccess_async1(client,
getTextBot()
, user, chan, user->nick, user->auth, chanmatch);
+ neonserv_cmd_myaccess_async1(client,
textclient
, user, chan, user->nick, user->auth, chanmatch);
}
else if(argv[0][0] == '*') {
//we've got an auth
}
else if(argv[0][0] == '*') {
//we've got an auth
@@
-59,7
+59,7
@@
CMD_BIND(neonserv_cmd_myaccess) {
chanmatch = argv[1];
}
argv[0]++;
chanmatch = argv[1];
}
argv[0]++;
- neonserv_cmd_myaccess_async1(client,
getTextBot()
, user, chan, NULL, argv[0], chanmatch);
+ neonserv_cmd_myaccess_async1(client,
textclient
, user, chan, NULL, argv[0], chanmatch);
} else {
if(argc > 1 && argv[1][0] == '#') {
chanmatch = argv[1];
} else {
if(argc > 1 && argv[1][0] == '#') {
chanmatch = argv[1];
@@
-68,13
+68,13
@@
CMD_BIND(neonserv_cmd_myaccess) {
if(!cuser) {
cuser = createTempUser(argv[0]);
if(!cuser) {
if(!cuser) {
cuser = createTempUser(argv[0]);
if(!cuser) {
- reply(
getTextBot()
, user, "NS_USER_UNKNOWN", argv[0]);
+ reply(
textclient
, user, "NS_USER_UNKNOWN", argv[0]);
return;
}
cuser->flags |= USERFLAG_ISTMPUSER;
}
if(cuser->flags & USERFLAG_ISAUTHED) {
return;
}
cuser->flags |= USERFLAG_ISTMPUSER;
}
if(cuser->flags & USERFLAG_ISAUTHED) {
- neonserv_cmd_myaccess_async1(client,
getTextBot()
, user, chan, argv[0], cuser->auth, chanmatch);
+ neonserv_cmd_myaccess_async1(client,
textclient
, user, chan, argv[0], cuser->auth, chanmatch);
} else {
struct neonserv_cmd_myaccess_cache *cache = malloc(sizeof(*cache));
if (!cache) {
} else {
struct neonserv_cmd_myaccess_cache *cache = malloc(sizeof(*cache));
if (!cache) {
@@
-82,12
+82,12
@@
CMD_BIND(neonserv_cmd_myaccess) {
return;
}
cache->client = client;
return;
}
cache->client = client;
- cache->textclient =
getTextBot()
;
+ cache->textclient =
textclient
;
cache->user = user;
cache->chan = chan;
cache->nick = strdup(argv[0]);
cache->chanmatch = (chanmatch ? strdup(chanmatch) : NULL);
cache->user = user;
cache->chan = chan;
cache->nick = strdup(argv[0]);
cache->chanmatch = (chanmatch ? strdup(chanmatch) : NULL);
- get_userauth(cuser, neonserv_cmd_myaccess_nick_lookup, cache);
+ get_userauth(cuser,
module_id,
neonserv_cmd_myaccess_nick_lookup, cache);
}
}
}
}
}
}