Don't require an IRCUser where it is not necessary.
FossilOrigin-Name: b86913fa3e01b6e467cd05ed81fa54a3ae159e54d6fc45481c29264a3238f20e
This commit is contained in:
parent
a73f2c9daa
commit
600c3df5f0
2 changed files with 9 additions and 9 deletions
|
@ -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_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue