From afa5eb93e9e14b65e3c846e70e22c6134ca95f80 Mon Sep 17 00:00:00 2001 From: Jokler Date: Fri, 27 Oct 2017 15:45:29 +0200 Subject: Panic if execute is called on the Currency Plugin --- src/plugins/currency.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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> { -- cgit v1.2.3-70-g09d2