From 9cb96d8822ed050a3c17f9a3a9b32007bd1c9660 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 10 Apr 2004 15:05:18 +0000 Subject: Fixes to channel join checks git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@497 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 6 ++++++ src/users.cpp | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 9bfc4ea6f..ca334c016 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -5589,6 +5589,12 @@ void handle_N(char token,char* params,serverrec* source,serverrec* reply, char* clientlist[nick]->port = 0; // so is this... clientlist[nick]->registered = 7; // this however we need to set for them to receive messages and appear online clientlist[nick]->idle_lastmsg = time(NULL); // this is unrealiable and wont actually be used locally + for (int i = 0; i < MAXCHANS; i++) + { + clientlist[tempnick]->chans[i].channel = NULL; + clientlist[tempnick]->chans[i].uc_modes = 0; + } + } void handle_F(char token,char* params,serverrec* source,serverrec* reply, char* udp_host,int udp_port) diff --git a/src/users.cpp b/src/users.cpp index eb4954897..48295eddd 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -28,7 +28,8 @@ userrec::userrec() strcpy(result,""); for (int i = 0; i < MAXCHANS; i++) { - chans[i].channel = NULL; + this->chans[i].channel = NULL; + this->chans[i].uc_modes = 0; } invites.clear(); } -- cgit v1.2.3