projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea3d053
)
update channel_lastvisit if a user without access joins
author
pk910
<philipp@zoelle1.de>
Mon, 3 Oct 2011 18:14:16 +0000
(20:14 +0200)
committer
pk910
<philipp@zoelle1.de>
Mon, 3 Oct 2011 18:14:16 +0000
(20:14 +0200)
src/event_neonserv_join.c
patch
|
blob
|
history
diff --git
a/src/event_neonserv_join.c
b/src/event_neonserv_join.c
index 26af7a4ca2f2ee21b7409727256eb7655be98679..7e6f1833e61db77eb532248e8310ef2767dec734 100644
(file)
--- a/
src/event_neonserv_join.c
+++ b/
src/event_neonserv_join.c
@@
-94,6
+94,8
@@
static void neonserv_event_join_async1(struct ClientSocket *client, struct ChanU
chanuserrow = mysql_fetch_row(res);
} else
chanuserrow = NULL;
+ if(!chanuserrow)
+ printf_mysql_query("UPDATE `channels` SET `channel_lastvisit` = UNIX_TIMESTAMP() WHERE `channel_id` = '%d'", chan->channel_id);
int userflags = (chanuserrow ? atoi(chanuserrow[1]) : 0);
int uaccess = ((chanuserrow && !(userflags & DB_CHANUSER_SUSPENDED)) ? atoi(chanuserrow[0]) : 0);
//GREETING