diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd.cpp | 6 | ||||
-rw-r--r-- | src/users.cpp | 3 |
2 files changed, 8 insertions, 1 deletions
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(); } |