mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
Backport race condition fixes.
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@10761 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
5a16db2fd4
commit
70e3407b80
@ -275,6 +275,9 @@ class ModuleServices : public Module
|
||||
|
||||
virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname, std::string &privs)
|
||||
{
|
||||
if (!IS_LOCAL(user))
|
||||
return 0;
|
||||
|
||||
if (chan)
|
||||
{
|
||||
if (chan->IsModeSet('R'))
|
||||
|
@ -197,6 +197,9 @@ class ModuleServicesAccount : public Module
|
||||
|
||||
virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname, std::string &privs)
|
||||
{
|
||||
if (!IS_LOCAL(user))
|
||||
return 0;
|
||||
|
||||
std::string *account;
|
||||
user->GetExt("accountname", account);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user