diff options
| author | 2010-12-01 14:00:15 -0500 | |
|---|---|---|
| committer | 2010-12-01 14:00:15 -0500 | |
| commit | 1ce44d2facff3389dbcd47d018198e6fcfd34fbc (patch) | |
| tree | 217af2186d582c8238a27e953ca58134835dd740 /src | |
| parent | Enable some extra warnings (diff) | |
Fix possible crash
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/m_auditorium.cpp | 2 | ||||
| -rw-r--r-- | src/modules/m_delayjoin.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_auditorium.cpp b/src/modules/m_auditorium.cpp index 10dc80d49..d3bcc92b8 100644 --- a/src/modules/m_auditorium.cpp +++ b/src/modules/m_auditorium.cpp @@ -159,7 +159,7 @@ class ModuleAuditorium : public Module continue; } // this channel should not be considered when listing my neighbors - include.erase(i); + i = include.erase(i); // however, that might hide me from ops that can see me... const UserMembList* users = c->GetUsers(); for(UserMembCIter j = users->begin(); j != users->end(); j++) diff --git a/src/modules/m_delayjoin.cpp b/src/modules/m_delayjoin.cpp index 473bae1ca..803ac8609 100644 --- a/src/modules/m_delayjoin.cpp +++ b/src/modules/m_delayjoin.cpp @@ -136,7 +136,7 @@ void ModuleDelayJoin::OnBuildNeighborList(User* source, std::vector<Channel*> &i Channel* c = *i; Membership* memb = c->GetUser(source); if (memb && unjoined.get(memb)) - include.erase(i); + i = include.erase(i); else i++; } |
