diff options
| author | Jokler <jokler.contact@gmail.com> | 2018-06-16 16:53:08 +0200 |
|---|---|---|
| committer | Jokler <jokler.contact@gmail.com> | 2018-06-16 16:53:08 +0200 |
| commit | 524f7a036a9eaadc698a5a57c60b9e8cd4003322 (patch) | |
| tree | 4868be7c6bbaf4fb0975fc7b2fcbbfd0daf39136 /src/plugins | |
| parent | 5af6ce3e835147118f00736e3364caaf7527146d (diff) | |
| download | frippy-524f7a036a9eaadc698a5a57c60b9e8cd4003322.tar.gz frippy-524f7a036a9eaadc698a5a57c60b9e8cd4003322.zip | |
Tell: Allow messages to online users
Since the userlists desync after a while
it is not guaranteed that users are actually online
when they appear to be.
Diffstat (limited to 'src/plugins')
| -rw-r--r-- | src/plugins/tell/mod.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/tell/mod.rs b/src/plugins/tell/mod.rs index 225373e..6510c2d 100644 --- a/src/plugins/tell/mod.rs +++ b/src/plugins/tell/mod.rs @@ -50,7 +50,8 @@ impl<T: Database> Tell<T> { || receiver.eq_ignore_ascii_case(&sender) { online.push(receiver); - continue; + // TODO Change this when https://github.com/aatxe/irc/issues/136 gets resolved + // continue; } let channels = client @@ -176,7 +177,8 @@ impl<T: Database> Tell<T> { } fn help(&self) -> &str { - "usage: tell user message\r\n\ + "Used to send messages to offline users which they will receive when they come online.\r\n + usage: tell user message\r\n\ example: tell Foobar Hello!" } } @@ -186,6 +188,7 @@ impl<T: Database> Plugin for Tell<T> { let res = match message.command { Command::JOIN(_, _, _) => self.send_tells(client, message.source_nickname().unwrap()), Command::NICK(ref nick) => self.send_tells(client, nick), + Command::PRIVMSG(ref nick, _) => self.send_tells(client, nick), Command::Response(resp, ref chan_info, _) => { if resp == Response::RPL_NAMREPLY { debug!("NAMREPLY info: {:?}", chan_info); |
