summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-23 17:51:01 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-23 17:51:01 +0000
commitd6194cb02c55e202d58fdd0d4dd8a8890bf4b0d1 (patch)
tree8f61e04b35aee9c2fd30ade8be84c46cde46fe03
parentf86d7e3982a9fa0cfe6fde81e7abf9403ed193f1 (diff)
Minor cleanup
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7503 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/channels.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index a111512bc..538aef171 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -294,12 +294,7 @@ chanrec* chanrec::JoinUser(InspIRCd* Instance, userrec *user, const char* cn, bo
FOREACH_RESULT_I(Instance,I_OnCheckInvite,OnCheckInvite(user, Ptr));
if (!MOD_RESULT)
{
- if (user->IsInvited(Ptr->name))
- {
- /* user was invited to channel */
- /* there may be an optional channel NOTICE here */
- }
- else
+ if (!user->IsInvited(Ptr->name))
{
user->WriteServ("473 %s %s :Cannot join channel (Invite only)",user->nick, Ptr->name);
return NULL;