Skip to content

Commit

Permalink
Fix for bug #358, by rogalek.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7501 e03df62e-2008-0410-955e-edbf42e46eb7
  • Loading branch information
rburchell committed Jul 23, 2007
1 parent 480e1e9 commit 5aaa38b
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/channels.cpp
Expand Up @@ -217,10 +217,18 @@ chanrec* chanrec::JoinUser(InspIRCd* Instance, userrec *user, const char* cn, bo

if (!Ptr)
{
if ((!IS_LOCAL(user)) && (!TS))
Instance->Log(DEBUG,"*** BUG *** chanrec::JoinUser called for REMOTE user '%s' on channel '%s' but no TS given!", user->nick, cn);

privs = "@";
/*
* Fix: desync bug was here, don't set @ on remote users - spanningtree handles their permissions. bug #358. -- w00t
*/
if (!IS_LOCAL(user))
{
if (!TS)
Instance->Log(DEBUG,"*** BUG *** chanrec::JoinUser called for REMOTE user '%s' on channel '%s' but no TS given!", user->nick, cn);
}
else
{
privs = "@";
}

if (IS_LOCAL(user) && override == false)
{
Expand Down

0 comments on commit 5aaa38b

Please sign in to comment.