mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Minor cleanup
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7503 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
f86d7e3982
commit
d6194cb02c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user