summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp6
1 files changed, 6 insertions, 0 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)