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:
w00t 2008-10-31 16:29:55 +00:00
parent 5a16db2fd4
commit 70e3407b80
2 changed files with 6 additions and 0 deletions

View File

@ -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'))

View File

@ -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);