git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9826
e03df62e-2008-0410-955e-
edbf42e46eb7
virtual int OnUserPreInvite(User* user,User* dest,Channel* channel, time_t timeout)
{
virtual int OnUserPreInvite(User* user,User* dest,Channel* channel, time_t timeout)
{
- if (channel->IsModeSet('V'))
- user->WriteNumeric(492, "%s %s :Can't invite %s to channel (+V set)",user->nick.c_str(), channel->name.c_str(), dest->nick.c_str());
- return 1;
+ if (channel->IsModeSet('V'))
+ {
+ user->WriteNumeric(492, "%s %s :Can't invite %s to channel (+V set)",user->nick.c_str(), channel->name.c_str(), dest->nick.c_str());
+ return 1;
+ }
+ return 0;
}
virtual ~ModuleNoInvite()
}
virtual ~ModuleNoInvite()