summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/channels.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/channels.c b/src/channels.c
index 87e6a8d05..297c8b8ec 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -533,6 +533,7 @@ void do_join(const char *source, int ac, char **av)
char *s, *t;
struct u_chanlist *c, *nextc;
char *channame;
+ time_t ts = time(NULL);
if (UseTS6 && ircd->ts6) {
user = find_byuid(source);
@@ -580,11 +581,9 @@ void do_join(const char *source, int ac, char **av)
* don't get to see things like channel keys. */
/* If channel already exists, check_kick() will use correct TS.
* Otherwise, we lose. */
- if (check_kick(user, s, time(NULL)))
+ if (check_kick(user, s, ts))
continue;
- time_t ts = time(NULL);
-
if (ac == 2) {
if (debug) {
alog("debug: recieved a new TS for JOIN: %ld",