projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added "nowho" parameter to debug userlist and fixed memory leak in DBHelper.c
[NeonServV5.git]
/
src
/
cmd_neonserv_giveowner.c
diff --git
a/src/cmd_neonserv_giveowner.c
b/src/cmd_neonserv_giveowner.c
index c3e519fc42b3792a89d3e36460b57df3abed5380..9cf5ae750941c0439e6ac25563a089e2fcef2e23 100644
(file)
--- a/
src/cmd_neonserv_giveowner.c
+++ b/
src/cmd_neonserv_giveowner.c
@@
-1,5
+1,5
@@
/* cmd_neonserv_giveowner.c - NeonServ v5.3
/* cmd_neonserv_giveowner.c - NeonServ v5.3
- * Copyright (C) 2011 Philipp Kreil (pk910)
+ * Copyright (C) 2011
-2012
Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-55,6
+55,10
@@
CMD_BIND(neonserv_cmd_giveowner) {
struct UserNode *cuser = getUserByNick(argv[0]);
if(!cuser) {
cuser = createTempUser(argv[0]);
struct UserNode *cuser = getUserByNick(argv[0]);
if(!cuser) {
cuser = createTempUser(argv[0]);
+ if(!cuser) {
+ reply(getTextBot(), user, "NS_USER_UNKNOWN", argv[0]);
+ return;
+ }
cuser->flags |= USERFLAG_ISTMPUSER;
}
if(cuser->flags & USERFLAG_ISAUTHED) {
cuser->flags |= USERFLAG_ISTMPUSER;
}
if(cuser->flags & USERFLAG_ISAUTHED) {