summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorviper viper@31f1291d-b8d6-0310-a050-a5561fc1590b <viper viper@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2008-08-31 23:52:20 +0000
committerviper viper@31f1291d-b8d6-0310-a050-a5561fc1590b <viper viper@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2008-08-31 23:52:20 +0000
commit4c9f2c89b5172f5e7dcf1657afd704eb0bd7f2fd (patch)
tree7b105167f5a29035c1fdd0b23f6ff58687adabde /src
parent8ff1b1d828443abaf8d4eed4511985b57e969cb6 (diff)
BUILD : 1.7.21 (1422) BUGS : 927 NOTES : Fixes compiling on windows. We should define new variables above the code not in between.
git-svn-id: svn://svn.anope.org/anope/trunk@1422 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1137 5417fbe8-f217-4b02-8779-1006273d7864
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",