diff options
| author | Jokler <jokler.contact@gmail.com> | 2017-10-27 15:45:29 +0200 |
|---|---|---|
| committer | Jokler <jokler.contact@gmail.com> | 2017-10-27 15:45:29 +0200 |
| commit | afa5eb93e9e14b65e3c846e70e22c6134ca95f80 (patch) | |
| tree | 290f7ea4b5c51c3212a18265e6530460290cb10e | |
| parent | 0139861d1e41a765b6ffde7cae37c1e16f9c053c (diff) | |
| download | frippy-afa5eb93e9e14b65e3c846e70e22c6134ca95f80.tar.gz frippy-afa5eb93e9e14b65e3c846e70e22c6134ca95f80.zip | |
Panic if execute is called on the Currency Plugin
| -rw-r--r-- | src/plugins/currency.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/currency.rs b/src/plugins/currency.rs index fd447e3..78ae593 100644 --- a/src/plugins/currency.rs +++ b/src/plugins/currency.rs @@ -132,7 +132,7 @@ impl Plugin for Currency { } fn execute(&mut self, _: &IrcServer, _: &Message) -> Result<(), IrcError> { - Ok(()) + panic!("Currency does not implement the execute function!") } fn command(&mut self, server: &IrcServer, mut command: PluginCommand) -> Result<(), IrcError> { |
