Skip to content

Commit

Permalink
Mask +k keys in channel and show the k mode in title bar.
Browse files Browse the repository at this point in the history
  • Loading branch information
emsquared committed Jul 24, 2012
1 parent e1e001c commit a0b0049
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions Classes/Controllers/TXMasterController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,7 @@ - (void)_moveInputHistory:(BOOL)up checkScroller:(BOOL)scroll event:(NSEvent *)e

if (s) {
[self.text setAttributedStringValue:s];

[self.world focusInputText];

if ([self.text respondsToSelector:@selector(resetTextFieldCellSize:)]) {
Expand Down
12 changes: 6 additions & 6 deletions Classes/IRC/IRCChannelMode.m
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ - (NSString *)format:(BOOL)maskK
[str appendString:@"+"];

for (IRCModeInfo *h in self.allModes) {
if (maskK == YES) {
if (h.mode == 'k') continue;
}

if (h.plus) {
if (h.param) {
[trail appendFormat:@" %@", h.param];
if (h.param && maskK == NO) {
if (h.mode == 'k') {
[trail appendFormat:@" ******"];
} else {
[trail appendFormat:@" %@", h.param];
}
}

[str appendFormat:@"%c", h.mode];
Expand Down
4 changes: 2 additions & 2 deletions Classes/IRC/IRCClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -4391,7 +4391,7 @@ - (void)receiveMode:(IRCMessage *)m
[self send:IRCPrivateCommandIndex("who"), c.name, nil, nil];
}

[self printBoth:c type:TVCLogLineModeType text:TXTFLS(@"IRCModeSet", nick, modeStr) receivedAt:m.receivedAt];
[self printBoth:c type:TVCLogLineModeType text:TXTFLS(@"IRCModeSet", nick, [c.mode string]) receivedAt:m.receivedAt];
}
} else {
[self printBoth:nil type:TVCLogLineModeType text:TXTFLS(@"IRCModeSet", nick, modeStr) receivedAt:m.receivedAt];
Expand Down Expand Up @@ -4886,7 +4886,7 @@ - (void)receiveNumericReply:(IRCMessage *)m
c.isModeInit = YES;
}

[self printBoth:c type:TVCLogLineModeType text:TXTFLS(@"IRCChannelHasModes", modeStr) receivedAt:m.receivedAt];
[self printBoth:c type:TVCLogLineModeType text:TXTFLS(@"IRCChannelHasModes", [c.mode string]) receivedAt:m.receivedAt];
}

break;
Expand Down
4 changes: 2 additions & 2 deletions Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
<key>TXBundleBuildCodeName</key>
<string>Turtle Soup</string>
<key>TXBundleBuildNumber</key>
<string>11992</string>
<string>11997</string>
<key>TXBundleBuildReference</key>
<string>2.1.1-248-gb370ab1-debug,llvm4.0</string>
<string>2.1.1-249-ge1e001c-appstore,llvm4.0</string>
</dict>
</plist>

0 comments on commit a0b0049

Please sign in to comment.