summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-10 14:59:30 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-10 14:59:30 +0000
commitb53dc2ea9ae2d961c38715b26ae96a750c3944a4 (patch)
treea30b3009ac1818e82fc59034908bdac362af928e
parentb6ec41644d7bd8d87959fb1a12fbe393c132bf6b (diff)
Fixes to JOIN
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@496 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/InspIRCd.layout22
-rw-r--r--src/inspircd.cpp25
2 files changed, 26 insertions, 21 deletions
diff --git a/src/InspIRCd.layout b/src/InspIRCd.layout
index 47508ccca..3a6014d42 100644
--- a/src/InspIRCd.layout
+++ b/src/InspIRCd.layout
@@ -13,9 +13,9 @@ LeftChar=1
[Editor_1]
Open=1
Top=1
-CursorCol=2
-CursorRow=5531
-TopLine=5477
+CursorCol=1
+CursorRow=1558
+TopLine=1504
LeftChar=1
[Editor_2]
@@ -53,8 +53,8 @@ LeftChar=1
[Editor_6]
Open=1
Top=0
-CursorCol=10
-CursorRow=26
+CursorCol=11
+CursorRow=28
TopLine=37
LeftChar=1
@@ -107,11 +107,11 @@ TopLine=1
LeftChar=1
[Editor_13]
-Open=0
+Open=1
Top=0
-CursorCol=12
-CursorRow=32
-TopLine=9
+CursorCol=20
+CursorRow=59
+TopLine=18
LeftChar=1
[Editor_14]
@@ -173,8 +173,8 @@ LeftChar=1
[Editor_21]
Open=1
Top=0
-CursorCol=1
-CursorRow=25
+CursorCol=3
+CursorRow=59
TopLine=7
LeftChar=1
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 813091798..9bfc4ea6f 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -1438,17 +1438,16 @@ chanrec* add_channel(userrec *user, const char* cn, const char* key, bool overri
Ptr = FindChan(cname);
if (Ptr)
{
- FOREACH_RESULT(OnUserPreJoin(user,Ptr,cname));
- if (MOD_RESULT) {
- return NULL;
- }
-
log(DEBUG,"add_channel: joining to: %s",Ptr->name);
// the override flag allows us to bypass channel modes
// and bans (used by servers)
if (!override)
{
+ FOREACH_RESULT(OnUserPreJoin(user,Ptr,cname));
+ if (MOD_RESULT) {
+ return NULL;
+ }
if (strcmp(Ptr->key,""))
{
@@ -1515,16 +1514,22 @@ chanrec* add_channel(userrec *user, const char* cn, const char* key, bool overri
}
}
- }
+ log(DEBUG,"add_channel: bans checked");
+
- log(DEBUG,"add_channel: bans checked");
+ if ((Ptr) && (user))
+ {
+ user->RemoveInvite(Ptr->name);
+ }
+
+ log(DEBUG,"add_channel: invites removed");
- if ((Ptr) && (user))
+ }
+ else
{
- user->RemoveInvite(Ptr->name);
+ log(DEBUG,"Overridden checks");
}
- log(DEBUG,"add_channel: invites removed");
}
created = 1;