Skip to content

Commit

Permalink
Add command.
Browse files Browse the repository at this point in the history
  • Loading branch information
emsquared committed Jun 30, 2012
1 parent 4e787e0 commit ff7e6ee
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions Classes/Headers/IRC.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
#define IRCCommandIndexNachat @"NACHAT"
#define IRCCommandIndexNames @"NAMES"
#define IRCCommandIndexNick @"NICK"
#define IRCCommandIndexNncoloreset @"NNCOLORESET"
#define IRCCommandIndexNotice @"NOTICE"
#define IRCCommandIndexOmsg @"OMSG"
#define IRCCommandIndexOnotice @"ONOTICE"
Expand Down
11 changes: 11 additions & 0 deletions Classes/IRC/IRCClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -2671,6 +2671,17 @@ - (BOOL)sendCommand:(id)str completeTarget:(BOOL)completeTarget target:(NSString
return YES;
break;
}
case 105: // Command: NNCOLORESET
{
if (PointerIsNotEmpty(c) && c.isChannel) {
for (IRCUser *u in c.members) {
u.colorNumber = -1;
}
}

return YES;
break;
}
default:
{
NSString *command = [cmd lowercaseString];
Expand Down
1 change: 1 addition & 0 deletions Classes/Preferences/TPCPreferences.m
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ + (void)populateCommandIndex
commandIndex[IRCCommandIndexNachat] = @"88";
commandIndex[IRCCommandIndexNames] = @"12";
commandIndex[IRCCommandIndexNick] = @"13";
commandIndex[IRCCommandIndexNncoloreset] = @"105";
commandIndex[IRCCommandIndexNotice] = @"14";
commandIndex[IRCCommandIndexOmsg] = @"38";
commandIndex[IRCCommandIndexOnotice] = @"39";
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>Dave Matthews Band® Magic Brownies™ Encore Edition</string>
<key>TXBundleBuildNumber</key>
<string>11695</string>
<string>11697</string>
<key>TXBundleBuildReference</key>
<string>2.1.1-209-gb88b122-appstore,llvm4.0</string>
<string>2.1.1-210-g4e787e0-debug,llvm4.0</string>
</dict>
</plist>

0 comments on commit ff7e6ee

Please sign in to comment.