API improvements.
FossilOrigin-Name: 50a9cc56c621bf7f12b423ddbecce9c2dfacea3435bbadf7f484c0eeb3d53821
This commit is contained in:
parent
54b163ac6a
commit
c29ff783e2
2 changed files with 44 additions and 44 deletions
|
@ -48,32 +48,32 @@
|
||||||
- (void)connection: (IRCConnection*)connection
|
- (void)connection: (IRCConnection*)connection
|
||||||
didSeeUser: (IRCUser*)user
|
didSeeUser: (IRCUser*)user
|
||||||
leaveChannel: (IRCChannel*)channel
|
leaveChannel: (IRCChannel*)channel
|
||||||
withReason: (OFString*)reason;
|
reason: (OFString*)reason;
|
||||||
- (void)connection: (IRCConnection*)connection
|
- (void)connection: (IRCConnection*)connection
|
||||||
didSeeUser: (IRCUser*)user
|
didSeeUser: (IRCUser*)user
|
||||||
changeNicknameTo: (OFString*)nickname;
|
changeNicknameTo: (OFString*)nickname;
|
||||||
- (void)connection: (IRCConnection*)connection
|
- (void)connection: (IRCConnection*)connection
|
||||||
didSeeUser: (IRCUser*)user
|
didSeeUser: (IRCUser*)user
|
||||||
kickUser: (OFString*)kickedUser
|
kickUser: (OFString*)kickedUser
|
||||||
fromChannel: (IRCChannel*)channel
|
channel: (IRCChannel*)channel
|
||||||
withReason: (OFString*)reason;
|
reason: (OFString*)reason;
|
||||||
- (void)connection: (IRCConnection*)connection
|
- (void)connection: (IRCConnection*)connection
|
||||||
didSeeUserQuit: (IRCUser*)user
|
didSeeUserQuit: (IRCUser*)user
|
||||||
withReason: (OFString*)reason;
|
reason: (OFString*)reason;
|
||||||
- (void)connection: (IRCConnection*)connection
|
- (void)connection: (IRCConnection*)connection
|
||||||
didReceiveMessage: (OFString*)msg
|
didReceiveMessage: (OFString*)msg
|
||||||
fromUser: (IRCUser*)user
|
user: (IRCUser*)user
|
||||||
inChannel: (IRCChannel*)channel;
|
channel: (IRCChannel*)channel;
|
||||||
- (void)connection: (IRCConnection*)connection
|
- (void)connection: (IRCConnection*)connection
|
||||||
didReceivePrivateMessage: (OFString*)msg
|
didReceivePrivateMessage: (OFString*)msg
|
||||||
fromUser: (IRCUser*)user;
|
user: (IRCUser*)user;
|
||||||
- (void)connection: (IRCConnection*)connection
|
- (void)connection: (IRCConnection*)connection
|
||||||
didReceiveNotice: (OFString*)notice
|
didReceiveNotice: (OFString*)notice
|
||||||
fromUser: (IRCUser*)user;
|
user: (IRCUser*)user;
|
||||||
- (void)connection: (IRCConnection*)connection
|
- (void)connection: (IRCConnection*)connection
|
||||||
didReceiveNotice: (OFString*)notice
|
didReceiveNotice: (OFString*)notice
|
||||||
fromUser: (IRCUser*)user
|
user: (IRCUser*)user
|
||||||
inChannel: (IRCChannel*)channel;
|
channel: (IRCChannel*)channel;
|
||||||
- (void)connection: (IRCConnection*)connection
|
- (void)connection: (IRCConnection*)connection
|
||||||
didReceiveNamesForChannel: (IRCChannel*)channel;
|
didReceiveNamesForChannel: (IRCChannel*)channel;
|
||||||
- (void)connectionWasClosed: (IRCConnection*)connection;
|
- (void)connectionWasClosed: (IRCConnection*)connection;
|
||||||
|
@ -118,18 +118,18 @@
|
||||||
- (void)joinChannel: (OFString*)channelName;
|
- (void)joinChannel: (OFString*)channelName;
|
||||||
- (void)leaveChannel: (IRCChannel*)channel;
|
- (void)leaveChannel: (IRCChannel*)channel;
|
||||||
- (void)leaveChannel: (IRCChannel*)channel
|
- (void)leaveChannel: (IRCChannel*)channel
|
||||||
withReason: (OFString*)reason;
|
reason: (OFString*)reason;
|
||||||
- (void)sendMessage: (OFString*)msg
|
- (void)sendMessage: (OFString*)msg
|
||||||
toChannel: (IRCChannel*)channel;
|
channel: (IRCChannel*)channel;
|
||||||
- (void)sendMessage: (OFString*)msg
|
- (void)sendMessage: (OFString*)msg
|
||||||
toUser: (OFString*)user;
|
user: (OFString*)user;
|
||||||
- (void)sendNotice: (OFString*)notice
|
- (void)sendNotice: (OFString*)notice
|
||||||
toUser: (OFString*)user;
|
user: (OFString*)user;
|
||||||
- (void)sendNotice: (OFString*)notice
|
- (void)sendNotice: (OFString*)notice
|
||||||
toChannel: (IRCChannel*)channel;
|
channel: (IRCChannel*)channel;
|
||||||
- (void)kickUser: (OFString*)user
|
- (void)kickUser: (OFString*)user
|
||||||
fromChannel: (IRCChannel*)channel
|
channel: (IRCChannel*)channel
|
||||||
withReason: (OFString*)reason;
|
reason: (OFString*)reason;
|
||||||
- (void)changeNicknameTo: (OFString*)nickname;
|
- (void)changeNicknameTo: (OFString*)nickname;
|
||||||
- (void)processLine: (OFString*)line;
|
- (void)processLine: (OFString*)line;
|
||||||
- (void)handleConnection;
|
- (void)handleConnection;
|
||||||
|
|
|
@ -154,11 +154,11 @@
|
||||||
- (void)leaveChannel: (IRCChannel*)channel
|
- (void)leaveChannel: (IRCChannel*)channel
|
||||||
{
|
{
|
||||||
[self leaveChannel: channel
|
[self leaveChannel: channel
|
||||||
withReason: nil];
|
reason: nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)leaveChannel: (IRCChannel*)channel
|
- (void)leaveChannel: (IRCChannel*)channel
|
||||||
withReason: (OFString*)reason
|
reason: (OFString*)reason
|
||||||
{
|
{
|
||||||
if (reason == nil)
|
if (reason == nil)
|
||||||
[self sendLineWithFormat: @"PART %@", [channel name]];
|
[self sendLineWithFormat: @"PART %@", [channel name]];
|
||||||
|
@ -194,32 +194,32 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)sendMessage: (OFString*)msg
|
- (void)sendMessage: (OFString*)msg
|
||||||
toChannel: (IRCChannel*)channel
|
channel: (IRCChannel*)channel
|
||||||
{
|
{
|
||||||
[self sendLineWithFormat: @"PRIVMSG %@ :%@", [channel name], msg];
|
[self sendLineWithFormat: @"PRIVMSG %@ :%@", [channel name], msg];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)sendMessage: (OFString*)msg
|
- (void)sendMessage: (OFString*)msg
|
||||||
toUser: (OFString*)user
|
user: (OFString*)user
|
||||||
{
|
{
|
||||||
[self sendLineWithFormat: @"PRIVMSG %@ :%@", user, msg];
|
[self sendLineWithFormat: @"PRIVMSG %@ :%@", user, msg];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)sendNotice: (OFString*)notice
|
- (void)sendNotice: (OFString*)notice
|
||||||
toUser: (OFString*)user
|
user: (OFString*)user
|
||||||
{
|
{
|
||||||
[self sendLineWithFormat: @"NOTICE %@ :%@", user, notice];
|
[self sendLineWithFormat: @"NOTICE %@ :%@", user, notice];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)sendNotice: (OFString*)notice
|
- (void)sendNotice: (OFString*)notice
|
||||||
toChannel: (IRCChannel*)channel
|
channel: (IRCChannel*)channel
|
||||||
{
|
{
|
||||||
[self sendLineWithFormat: @"NOTICE %@ :%@", [channel name], notice];
|
[self sendLineWithFormat: @"NOTICE %@ :%@", [channel name], notice];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)kickUser: (OFString*)user
|
- (void)kickUser: (OFString*)user
|
||||||
fromChannel: (IRCChannel*)channel
|
channel: (IRCChannel*)channel
|
||||||
withReason: (OFString*)reason
|
reason: (OFString*)reason
|
||||||
{
|
{
|
||||||
[self sendLineWithFormat: @"KICK %@ %@ :%@",
|
[self sendLineWithFormat: @"KICK %@ %@ :%@",
|
||||||
[channel name], user, reason];
|
[channel name], user, reason];
|
||||||
|
@ -349,7 +349,7 @@
|
||||||
[delegate connection: self
|
[delegate connection: self
|
||||||
didSeeUser: user
|
didSeeUser: user
|
||||||
leaveChannel: channel
|
leaveChannel: channel
|
||||||
withReason: reason];
|
reason: reason];
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -379,8 +379,8 @@
|
||||||
[delegate connection: self
|
[delegate connection: self
|
||||||
didSeeUser: user
|
didSeeUser: user
|
||||||
kickUser: whom
|
kickUser: whom
|
||||||
fromChannel: channel
|
channel: channel
|
||||||
withReason: reason];
|
reason: reason];
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -408,7 +408,7 @@
|
||||||
|
|
||||||
[delegate connection: self
|
[delegate connection: self
|
||||||
didSeeUserQuit: user
|
didSeeUserQuit: user
|
||||||
withReason: reason];
|
reason: reason];
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -469,12 +469,12 @@
|
||||||
|
|
||||||
[delegate connection: self
|
[delegate connection: self
|
||||||
didReceiveMessage: msg
|
didReceiveMessage: msg
|
||||||
fromUser: user
|
user: user
|
||||||
inChannel: channel];
|
channel: channel];
|
||||||
} else
|
} else
|
||||||
[delegate connection: self
|
[delegate connection: self
|
||||||
didReceivePrivateMessage: msg
|
didReceivePrivateMessage: msg
|
||||||
fromUser: user];
|
user: user];
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -507,12 +507,12 @@
|
||||||
|
|
||||||
[delegate connection: self
|
[delegate connection: self
|
||||||
didReceiveNotice: notice
|
didReceiveNotice: notice
|
||||||
fromUser: user
|
user: user
|
||||||
inChannel: channel];
|
channel: channel];
|
||||||
} else
|
} else
|
||||||
[delegate connection: self
|
[delegate connection: self
|
||||||
didReceiveNotice: notice
|
didReceiveNotice: notice
|
||||||
fromUser: user];
|
user: user];
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -605,7 +605,7 @@
|
||||||
- (void)connection: (IRCConnection*)connection
|
- (void)connection: (IRCConnection*)connection
|
||||||
didSeeUser: (IRCUser*)user
|
didSeeUser: (IRCUser*)user
|
||||||
leaveChannel: (IRCChannel*)channel
|
leaveChannel: (IRCChannel*)channel
|
||||||
withReason: (OFString*)reason
|
reason: (OFString*)reason
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -618,40 +618,40 @@
|
||||||
- (void)connection: (IRCConnection*)connection
|
- (void)connection: (IRCConnection*)connection
|
||||||
didSeeUser: (IRCUser*)user
|
didSeeUser: (IRCUser*)user
|
||||||
kickUser: (OFString*)kickedUser
|
kickUser: (OFString*)kickedUser
|
||||||
fromChannel: (IRCChannel*)channel
|
channel: (IRCChannel*)channel
|
||||||
withReason: (OFString*)reason
|
reason: (OFString*)reason
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)connection: (IRCConnection*)connection
|
- (void)connection: (IRCConnection*)connection
|
||||||
didSeeUserQuit: (IRCUser*)user
|
didSeeUserQuit: (IRCUser*)user
|
||||||
withReason: (OFString*)reason
|
reason: (OFString*)reason
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)connection: (IRCConnection*)connection
|
- (void)connection: (IRCConnection*)connection
|
||||||
didReceiveMessage: (OFString*)msg
|
didReceiveMessage: (OFString*)msg
|
||||||
fromUser: (IRCUser*)user
|
fromUser: (IRCUser*)user
|
||||||
inChannel: (IRCChannel*)channel
|
channel: (IRCChannel*)channel
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)connection: (IRCConnection*)connection
|
- (void)connection: (IRCConnection*)connection
|
||||||
didReceivePrivateMessage: (OFString*)msg
|
didReceivePrivateMessage: (OFString*)msg
|
||||||
fromUser: (IRCUser*)user
|
user: (IRCUser*)user
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)connection: (IRCConnection*)connection
|
- (void)connection: (IRCConnection*)connection
|
||||||
didReceiveNotice: (OFString*)notice
|
didReceiveNotice: (OFString*)notice
|
||||||
fromUser: (IRCUser*)user
|
user: (IRCUser*)user
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)connection: (IRCConnection*)connection
|
- (void)connection: (IRCConnection*)connection
|
||||||
didReceiveNotice: (OFString*)notice
|
didReceiveNotice: (OFString*)notice
|
||||||
fromUser: (IRCUser*)user
|
user: (IRCUser*)user
|
||||||
inChannel: (IRCChannel*)channel
|
channel: (IRCChannel*)channel
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue