Don't require an IRCUser where it is not necessary.

FossilOrigin-Name: b86913fa3e01b6e467cd05ed81fa54a3ae159e54d6fc45481c29264a3238f20e
This commit is contained in:
Jonathan Schleifer 2012-02-16 17:27:50 +00:00
parent a73f2c9daa
commit 600c3df5f0
2 changed files with 9 additions and 9 deletions

View file

@ -101,12 +101,12 @@
- (void)sendMessage: (OFString*)msg - (void)sendMessage: (OFString*)msg
toChannel: (IRCChannel*)channel; toChannel: (IRCChannel*)channel;
- (void)sendMessage: (OFString*)msg - (void)sendMessage: (OFString*)msg
toUser: (IRCUser*)user; toUser: (OFString*)user;
- (void)sendNotice: (OFString*)notice - (void)sendNotice: (OFString*)notice
toUser: (IRCUser*)user; toUser: (OFString*)user;
- (void)sendNotice: (OFString*)notice - (void)sendNotice: (OFString*)notice
toChannel: (IRCChannel*)channel; toChannel: (IRCChannel*)channel;
- (void)kickUser: (IRCUser*)user - (void)kickUser: (OFString*)user
fromChannel: (IRCChannel*)channel fromChannel: (IRCChannel*)channel
withReason: (OFString*)reason; withReason: (OFString*)reason;
- (void)changeNicknameTo: (OFString*)nickname; - (void)changeNicknameTo: (OFString*)nickname;

View file

@ -133,15 +133,15 @@
} }
- (void)sendMessage: (OFString*)msg - (void)sendMessage: (OFString*)msg
toUser: (IRCUser*)user toUser: (OFString*)user
{ {
[self sendLineWithFormat: @"PRIVMSG %@ :%@", user.nickname, msg]; [self sendLineWithFormat: @"PRIVMSG %@ :%@", user, msg];
} }
- (void)sendNotice: (OFString*)notice - (void)sendNotice: (OFString*)notice
toUser: (IRCUser*)user toUser: (OFString*)user
{ {
[self sendLineWithFormat: @"NOTICE %@ :%@", user.nickname, notice]; [self sendLineWithFormat: @"NOTICE %@ :%@", user, notice];
} }
- (void)sendNotice: (OFString*)notice - (void)sendNotice: (OFString*)notice
@ -150,12 +150,12 @@
[self sendLineWithFormat: @"NOTICE %@ :%@", channel.name, notice]; [self sendLineWithFormat: @"NOTICE %@ :%@", channel.name, notice];
} }
- (void)kickUser: (IRCUser*)user - (void)kickUser: (OFString*)user
fromChannel: (IRCChannel*)channel fromChannel: (IRCChannel*)channel
withReason: (OFString*)reason withReason: (OFString*)reason
{ {
[self sendLineWithFormat: @"KICK %@ %@ :%@", [self sendLineWithFormat: @"KICK %@ %@ :%@",
channel.name, user.nickname, reason]; channel.name, user, reason];
} }
- (void)changeNicknameTo: (OFString*)nickname_ - (void)changeNicknameTo: (OFString*)nickname_