diff options
| author | Jokler <jokler.contact@gmail.com> | 2018-02-10 15:25:01 +0100 |
|---|---|---|
| committer | Jokler <jokler.contact@gmail.com> | 2018-02-10 15:25:01 +0100 |
| commit | 2c10ee57bbefde948b401c36fc50209bc34a99ad (patch) | |
| tree | a7482e39e3fcfd8efa32460d670503c90de7a3aa /src/plugins/emoji.rs | |
| parent | 2ba26a37d27a637b7c0e02970419342a6f83462b (diff) | |
| download | frippy-2c10ee57bbefde948b401c36fc50209bc34a99ad.tar.gz frippy-2c10ee57bbefde948b401c36fc50209bc34a99ad.zip | |
Upgrade dependencies
Diffstat (limited to 'src/plugins/emoji.rs')
| -rw-r--r-- | src/plugins/emoji.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/emoji.rs b/src/plugins/emoji.rs index 512a62e..c19593d 100644 --- a/src/plugins/emoji.rs +++ b/src/plugins/emoji.rs @@ -3,7 +3,7 @@ extern crate unicode_names; use std::fmt; use irc::client::prelude::*; -use irc::error::Error as IrcError; +use irc::error::IrcError; use plugin::*; @@ -97,14 +97,14 @@ impl Emoji { } impl Plugin for Emoji { - fn is_allowed(&self, _: &IrcServer, message: &Message) -> bool { + fn is_allowed(&self, _: &IrcClient, message: &Message) -> bool { match message.command { Command::PRIVMSG(_, _) => true, _ => false, } } - fn execute(&self, server: &IrcServer, message: &Message) -> Result<(), IrcError> { + fn execute(&self, server: &IrcClient, message: &Message) -> Result<(), IrcError> { match message.command { Command::PRIVMSG(_, ref content) => { server.send_privmsg(message.response_target().unwrap(), @@ -114,12 +114,12 @@ impl Plugin for Emoji { } } - fn command(&self, server: &IrcServer, command: PluginCommand) -> Result<(), IrcError> { + fn command(&self, server: &IrcClient, command: PluginCommand) -> Result<(), IrcError> { server.send_notice(&command.source, "This Plugin does not implement any commands.") } - fn evaluate(&self, _: &IrcServer, command: PluginCommand) -> Result<String, String> { + fn evaluate(&self, _: &IrcClient, command: PluginCommand) -> Result<String, String> { let emojis = self.emoji(&command.tokens[0]); if emojis.is_empty() { Ok(emojis) |
