projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbe5cdc
)
create temporary user if inviting user is not known
author
pk910
<philipp@zoelle1.de>
Fri, 30 Sep 2011 18:44:05 +0000
(20:44 +0200)
committer
pk910
<philipp@zoelle1.de>
Fri, 30 Sep 2011 18:44:05 +0000
(20:44 +0200)
IRCParser.c
patch
|
blob
|
history
diff --git
a/IRCParser.c
b/IRCParser.c
index 336b198641eb25cfbed3630737aa9bc3bd0045ae..8662f6d8399e3907f60ef1c9713cbc5a5e438d42 100644
(file)
--- a/
IRCParser.c
+++ b/
IRCParser.c
@@
-321,6
+321,10
@@
static IRC_CMD(raw_324) { //MODE LIST
static IRC_CMD(raw_invite) {
if(from == NULL || argc < 2) return 0;
struct UserNode *user = getUserByMask(from);
+ if(user == NULL) {
+ user = createTempUser(from);
+ user->flags |= USERFLAG_ISTMPUSER;
+ }
event_invite(client, user, argv[1]);
return 1;
}