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

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