summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-10 15:05:18 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-10 15:05:18 +0000
commit9cb96d8822ed050a3c17f9a3a9b32007bd1c9660 (patch)
tree630db2d1e9c05cd491916c5bc2275409fc4797d1 /src
parentb53dc2ea9ae2d961c38715b26ae96a750c3944a4 (diff)
Fixes to channel join checks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@497 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/inspircd.cpp6
-rw-r--r--src/users.cpp3
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();
}