From: <mm...@us...> - 2007-10-10 05:38:50
|
Revision: 263 http://libirc.svn.sourceforge.net/libirc/?rev=263&view=rev Author: mm_202 Date: 2007-10-09 22:38:46 -0700 (Tue, 09 Oct 2007) Log Message: ----------- Commented out the area that is causing the segfaults. A dirty hack, but it'll be fixed later. Modified Paths: -------------- trunk/libirc/include/IRCUserManager.h trunk/libirc/src/IRCUserManager.cpp Modified: trunk/libirc/include/IRCUserManager.h =================================================================== --- trunk/libirc/include/IRCUserManager.h 2007-10-10 01:32:07 UTC (rev 262) +++ trunk/libirc/include/IRCUserManager.h 2007-10-10 05:38:46 UTC (rev 263) @@ -257,4 +257,4 @@ int lastChannelID; }; -#endif//_IRC_USER_MANAGER_ \ No newline at end of file +#endif//_IRC_USER_MANAGER_ Modified: trunk/libirc/src/IRCUserManager.cpp =================================================================== --- trunk/libirc/src/IRCUserManager.cpp 2007-10-10 01:32:07 UTC (rev 262) +++ trunk/libirc/src/IRCUserManager.cpp 2007-10-10 05:38:46 UTC (rev 263) @@ -582,16 +582,17 @@ { channelRecord.userPerms.erase(channelRecord.userPerms.find(userRecord.id)); - std::vector<int>::iterator itr = userRecord.channels.begin(); - while ( itr != userRecord.channels.end() ) - { - if ( *itr == channelRecord.id) - itr = userRecord.channels.erase(itr); - else - itr++; - } - if (autoPurgeOnLastPart && userRecord.channels.size() == 0) - removeUser(user); + // mm_202 - the problem area that causes the segfaults. + /*std::vector<int>::iterator itr = userRecord.channels.begin(); + while ( itr != userRecord.channels.end() ) + { + if ( *itr == channelRecord.id) + itr = userRecord.channels.erase(itr); + else + itr++; + }*/ + // if (autoPurgeOnLastPart && userRecord.channels.size() == 0) + // removeUser(user); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |