Add support for sending notices.
FossilOrigin-Name: 84aa37ee2ebcf403cbbaea796a48c5af26d800bd7db673ff7894f5ca8a685bbd
This commit is contained in:
parent
b0ef070c32
commit
842476ea96
2 changed files with 16 additions and 0 deletions
|
@ -98,5 +98,9 @@
|
||||||
toChannel: (IRCChannel*)channel;
|
toChannel: (IRCChannel*)channel;
|
||||||
- (void)sendMessage: (OFString*)msg
|
- (void)sendMessage: (OFString*)msg
|
||||||
toUser: (IRCUser*)user;
|
toUser: (IRCUser*)user;
|
||||||
|
- (void)sendNotice: (OFString*)notice
|
||||||
|
toUser: (IRCUser*)user;
|
||||||
|
- (void)sendNotice: (OFString*)notice
|
||||||
|
toChannel: (IRCChannel*)channel;
|
||||||
- (void)handleConnection;
|
- (void)handleConnection;
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -138,6 +138,18 @@
|
||||||
[self sendLineWithFormat: @"PRIVMSG %@ :%@", user.nickname, msg];
|
[self sendLineWithFormat: @"PRIVMSG %@ :%@", user.nickname, msg];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)sendNotice: (OFString*)notice
|
||||||
|
toUser: (IRCUser*)user
|
||||||
|
{
|
||||||
|
[self sendLineWithFormat: @"NOTICE %@ :%@", user.nickname, notice];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)sendNotice: (OFString*)notice
|
||||||
|
toChannel: (IRCChannel*)channel
|
||||||
|
{
|
||||||
|
[self sendLineWithFormat: @"NOTICE %@ :%@", channel.name, notice];
|
||||||
|
}
|
||||||
|
|
||||||
- (void)handleConnection
|
- (void)handleConnection
|
||||||
{
|
{
|
||||||
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
|
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue