aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/keepnick.rs
diff options
context:
space:
mode:
authorJokler <jokler.contact@gmail.com>2018-02-10 14:13:07 +0100
committerJokler <jokler.contact@gmail.com>2018-02-10 14:13:07 +0100
commit2ba26a37d27a637b7c0e02970419342a6f83462b (patch)
treec7d2323ddf7a0aa58d1b680200dc0acb9dad8558 /src/plugins/keepnick.rs
parent1f69bfef7f2fd5fdc8787485d81461d68aa2d3ba (diff)
downloadfrippy-2ba26a37d27a637b7c0e02970419342a6f83462b.tar.gz
frippy-2ba26a37d27a637b7c0e02970419342a6f83462b.zip
Add evaluate function to plugins
This allows plugins to be used in combination with each other.
Diffstat (limited to 'src/plugins/keepnick.rs')
-rw-r--r--src/plugins/keepnick.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/keepnick.rs b/src/plugins/keepnick.rs
index 1d4627d..2970857 100644
--- a/src/plugins/keepnick.rs
+++ b/src/plugins/keepnick.rs
@@ -54,6 +54,10 @@ impl Plugin for KeepNick {
server.send_notice(&command.source,
"This Plugin does not implement any commands.")
}
+
+ fn evaluate(&self, _: &IrcServer, _: PluginCommand) -> Result<String, String> {
+ Err(String::from("This Plugin does not implement any commands."))
+ }
}
#[cfg(test)]