From 8b481420cd3c0dd02cb5671e753dc5ff4a40e7eb Mon Sep 17 00:00:00 2001 From: Jokler Date: Fri, 27 Oct 2017 15:55:11 +0200 Subject: Move help into a Plugin --- src/plugin.rs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/plugin.rs') diff --git a/src/plugin.rs b/src/plugin.rs index d1a1f3d..e0a4ce2 100644 --- a/src/plugin.rs +++ b/src/plugin.rs @@ -121,10 +121,6 @@ impl ThreadedPlugins { return server.send_notice(&command.source, &help); } - if &command.tokens[0].to_lowercase() == "help" { - return self.send_help_message(server, &command); - } - // Check if the command is for this plugin if let Some(plugin) = self.plugins.get(&command.tokens[0].to_lowercase()) { @@ -151,10 +147,6 @@ impl ThreadedPlugins { server.send_notice(&command.source, &help) } } - - fn send_help_message(&self, server: &IrcServer, command: &PluginCommand) -> Result<(), IrcError> { - server.send_notice(&command.source, "Help has not been added yet.") - } } impl fmt::Display for ThreadedPlugins { -- cgit v1.2.3-70-g09d2