Changeset 3650
- Timestamp:
- 05/18/07 23:49:32 (1 year ago)
- Files:
-
- trunk/Chat Core/MVIRCChatConnection.m (modified) (4 diffs)
- trunk/Inspectors/JVChatRoomInspector.m (modified) (2 diffs)
- trunk/Languages/Dutch.lproj/JVRoomInspector.nib/info.nib (modified) (2 diffs)
- trunk/Languages/Dutch.lproj/JVRoomInspector.nib/keyedobjects.nib (modified) (previous)
- trunk/Languages/English.lproj/JVRoomInspector.nib/info.nib (modified) (2 diffs)
- trunk/Languages/English.lproj/JVRoomInspector.nib/keyedobjects.nib (modified) (previous)
- trunk/Languages/French.lproj/JVRoomInspector.nib/info.nib (modified) (2 diffs)
- trunk/Languages/French.lproj/JVRoomInspector.nib/keyedobjects.nib (modified) (previous)
- trunk/Languages/German.lproj/JVRoomInspector.nib/info.nib (modified) (1 diff)
- trunk/Languages/German.lproj/JVRoomInspector.nib/keyedobjects.nib (modified) (previous)
- trunk/Languages/Italian.lproj/JVRoomInspector.nib/info.nib (modified) (1 diff)
- trunk/Languages/Italian.lproj/JVRoomInspector.nib/keyedobjects.nib (modified) (previous)
- trunk/Languages/Spanish.lproj/JVRoomInspector.nib/info.nib (modified) (2 diffs)
- trunk/Languages/Spanish.lproj/JVRoomInspector.nib/keyedobjects.nib (modified) (previous)
- trunk/Languages/pt_PT.lproj/JVRoomInspector.nib/info.nib (modified) (1 diff)
- trunk/Languages/pt_PT.lproj/JVRoomInspector.nib/keyedobjects.nib (modified) (previous)
- trunk/Languages/zh_TW.lproj/JVRoomInspector.nib/info.nib (modified) (2 diffs)
- trunk/Languages/zh_TW.lproj/JVRoomInspector.nib/keyedobjects.nib (modified) (previous)
- trunk/Panels/JVDirectChatPanel.m (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Chat Core/MVIRCChatConnection.m
r3637 r3650 2138 2138 2139 2139 unsigned long oldModes = [room modes]; 2140 unsigned long argModes = 0; 2140 2141 unsigned long value = 0; 2141 2142 NSMutableArray *argsNeeded = [[NSMutableArray allocWithZone:nil] initWithCapacity:10]; … … 2185 2186 goto queue; 2186 2187 case 'k': 2187 if( ! enabled ) [room _removeMode:MVChatRoomPassphraseToJoinMode]; 2188 if( ! enabled ) { 2189 [room _removeMode:MVChatRoomPassphraseToJoinMode]; 2190 break; 2191 } 2188 2192 value = MVChatRoomPassphraseToJoinMode; 2189 2193 goto queue; … … 2237 2241 } 2238 2242 } else if( mode == MVChatRoomLimitNumberOfMembersMode && enabled ) { 2243 argModes |= MVChatRoomLimitNumberOfMembersMode; 2239 2244 [room _setMode:MVChatRoomLimitNumberOfMembersMode withAttribute:[NSNumber numberWithInt:[param intValue]]]; 2240 } else if( mode == MVChatRoomPassphraseToJoinMode ) {2241 if( enabled ) [room _setMode:MVChatRoomPassphraseToJoinMode withAttribute:param];2242 else [room _removeMode:MVChatRoomPassphraseToJoinMode];2245 } else if( mode == MVChatRoomPassphraseToJoinMode && enabled ) { 2246 argModes |= MVChatRoomPassphraseToJoinMode; 2247 [room _setMode:MVChatRoomPassphraseToJoinMode withAttribute:param]; 2243 2248 } 2244 2249 … … 2256 2261 [argsNeeded release]; 2257 2262 2258 unsigned int changedModes = ( oldModes ^ [room modes] ) ;2263 unsigned int changedModes = ( oldModes ^ [room modes] ) | argModes; 2259 2264 [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadWithName:MVChatRoomModesChangedNotification object:room userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithUnsignedInt:changedModes], @"changedModes", sender, @"by", nil]]; 2260 2265 } trunk/Inspectors/JVChatRoomInspector.m
r3514 r3650 135 135 if( enabled ) [(MVChatRoom *)[_room target] setMode:MVChatRoomPassphraseToJoinMode withAttribute:[sender stringValue]]; 136 136 else { 137 [(MVChatRoom *)[_room target] removeMode:MVChatRoomPassphraseToJoinMode]; 137 138 [requiresPassword setState:NSOffState]; 138 139 [sender setEnabled:NO]; … … 142 143 if( enabled ) [(MVChatRoom *)[_room target] setMode:MVChatRoomLimitNumberOfMembersMode withAttribute:[sender stringValue]]; 143 144 else { 145 [(MVChatRoom *)[_room target] removeMode:MVChatRoomLimitNumberOfMembersMode]; 144 146 [limitMembers setState:NSOffState]; 145 147 [sender setEnabled:NO]; trunk/Languages/Dutch.lproj/JVRoomInspector.nib/info.nib
r2997 r3650 4 4 <dict> 5 5 <key>IBDocumentLocation</key> 6 <string>1 11 54 356 240 0 0 1024 746</string>6 <string>180 68 356 240 0 0 1440 878 </string> 7 7 <key>IBEditorPositions</key> 8 8 <dict> 9 9 <key>263</key> 10 <string> 64 286 335 403 0 0 1024 746</string>10 <string>552 396 335 403 0 0 1440 878 </string> 11 11 </dict> 12 12 <key>IBFramework Version</key> 13 <string>4 39.0</string>13 <string>446.1</string> 14 14 <key>IBGroupedObjects</key> 15 15 <dict> … … 45 45 </array> 46 46 <key>IBSystem Version</key> 47 <string>8 C46</string>47 <string>8P2137</string> 48 48 </dict> 49 49 </plist> trunk/Languages/English.lproj/JVRoomInspector.nib/info.nib
r2979 r3650 4 4 <dict> 5 5 <key>IBDocumentLocation</key> 6 <string>1 53 81 356 240 0 0 1280 1002</string>6 <string>179 68 356 240 0 0 1440 878 </string> 7 7 <key>IBEditorPositions</key> 8 8 <dict> 9 9 <key>263</key> 10 <string> 304 433 335 403 0 0 1280 1002</string>10 <string>552 396 335 403 0 0 1440 878 </string> 11 11 </dict> 12 12 <key>IBFramework Version</key> 13 <string>44 2.0</string>13 <string>446.1</string> 14 14 <key>IBGroupedObjects</key> 15 15 <dict> … … 45 45 </array> 46 46 <key>IBSystem Version</key> 47 <string>8 C46</string>47 <string>8P2137</string> 48 48 </dict> 49 49 </plist> trunk/Languages/French.lproj/JVRoomInspector.nib/info.nib
r3040 r3650 4 4 <dict> 5 5 <key>IBDocumentLocation</key> 6 <string>1 11 54 356 240 0 0 1024 746</string>6 <string>180 68 356 240 0 0 1440 878 </string> 7 7 <key>IBEditorPositions</key> 8 8 <dict> 9 9 <key>263</key> 10 <string> 344 308 335 403 0 0 1024 746</string>10 <string>552 396 335 403 0 0 1440 878 </string> 11 11 </dict> 12 12 <key>IBFramework Version</key> 13 <string>4 39.0</string>13 <string>446.1</string> 14 14 <key>IBGroupedObjects</key> 15 15 <dict> … … 47 47 </array> 48 48 <key>IBSystem Version</key> 49 <string>8 F46</string>49 <string>8P2137</string> 50 50 </dict> 51 51 </plist> trunk/Languages/German.lproj/JVRoomInspector.nib/info.nib
r3575 r3650 25 25 </array> 26 26 <key>IBSystem Version</key> 27 <string>8 L2127</string>27 <string>8P2137</string> 28 28 </dict> 29 29 </plist> trunk/Languages/Italian.lproj/JVRoomInspector.nib/info.nib
r3536 r3650 47 47 </array> 48 48 <key>IBSystem Version</key> 49 <string>8 L2127</string>49 <string>8P2137</string> 50 50 </dict> 51 51 </plist> trunk/Languages/Spanish.lproj/JVRoomInspector.nib/info.nib
r3441 r3650 8 8 <dict> 9 9 <key>263</key> 10 <string> 102 364335 403 0 0 1440 878 </string>10 <string>552 396 335 403 0 0 1440 878 </string> 11 11 </dict> 12 12 <key>IBFramework Version</key> … … 40 40 <key>IBOldestOS</key> 41 41 <integer>3</integer> 42 <key>IBOpenObjects</key> 43 <array> 44 <integer>263</integer> 45 </array> 42 46 <key>IBSystem Version</key> 43 <string>8 L2127</string>47 <string>8P2137</string> 44 48 </dict> 45 49 </plist> trunk/Languages/pt_PT.lproj/JVRoomInspector.nib/info.nib
r3535 r3650 47 47 </array> 48 48 <key>IBSystem Version</key> 49 <string>8 L2127</string>49 <string>8P2137</string> 50 50 </dict> 51 51 </plist> trunk/Languages/zh_TW.lproj/JVRoomInspector.nib/info.nib
r3062 r3650 4 4 <dict> 5 5 <key>IBDocumentLocation</key> 6 <string>1 53 81 356 240 0 0 1280 1002</string>6 <string>179 68 356 240 0 0 1440 878 </string> 7 7 <key>IBEditorPositions</key> 8 8 <dict> 9 9 <key>263</key> 10 <string> 304 433 335 403 0 0 1280 1002</string>10 <string>552 396 335 403 0 0 1440 878 </string> 11 11 </dict> 12 12 <key>IBFramework Version</key> 13 <string>44 3.0</string>13 <string>446.1</string> 14 14 <key>IBLockedObjects</key> 15 15 <array/> … … 20 20 <key>IBOldestOS</key> 21 21 <integer>3</integer> 22 <key>IBOpenObjects</key> 23 <array> 24 <integer>263</integer> 25 </array> 22 26 <key>IBSystem Version</key> 23 <string>8 F46</string>27 <string>8P2137</string> 24 28 </dict> 25 29 </plist> trunk/Panels/JVDirectChatPanel.m
r3644 r3650 224 224 logs = [logs stringByAppendingPathComponent:logName]; 225 225 226 _sqlTestTranscript = [[JVSQLChatTranscript alloc] initWithContentsOfFile:[[logs stringByDeletingPathExtension] stringByAppendingPathExtension:@"colloquySQLTranscript"]];226 // _sqlTestTranscript = [[JVSQLChatTranscript alloc] initWithContentsOfFile:[[logs stringByDeletingPathExtension] stringByAppendingPathExtension:@"colloquySQLTranscript"]]; 227 227 228 228 if( [fileManager fileExistsAtPath:logs] ) … … 732 732 733 733 JVChatEvent *newEvent = [[self transcript] appendEvent:event]; 734 [_sqlTestTranscript appendEvent:event];734 // [_sqlTestTranscript appendEvent:event]; 735 735 [display appendChatTranscriptElement:newEvent]; 736 736 … … 871 871 872 872 JVChatMessage *newMessage = [[self transcript] appendMessage:cmessage]; 873 [_sqlTestTranscript appendMessage:cmessage];873 // [_sqlTestTranscript appendMessage:cmessage]; 874 874 875 875 if( [display appendChatMessage:newMessage] ) {
