From 82dfb173fbd8cb380af630839f04d63389684262 Mon Sep 17 00:00:00 2001 From: timriker Date: Thu, 4 Sep 2003 17:21:10 +0000 Subject: [PATCH] move whatInterface to core git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@825 c11ca15a-4712-0410-83d8-924469b57eb5 --- blootbot | 1 - src/core.pl | 8 ++++++++ src/interface.pl | 16 ---------------- 3 files changed, 8 insertions(+), 17 deletions(-) delete mode 100644 src/interface.pl diff --git a/blootbot b/blootbot index 5e656e7..5be7642 100755 --- a/blootbot +++ b/blootbot @@ -29,7 +29,6 @@ BEGIN { require "$bot_src_dir/logger.pl"; require "$bot_src_dir/core.pl"; - require "$bot_src_dir/interface.pl"; require "$bot_src_dir/modules.pl"; # load the configuration (params) file. diff --git a/src/core.pl b/src/core.pl index 077298a..f42fb2b 100644 --- a/src/core.pl +++ b/src/core.pl @@ -91,6 +91,14 @@ $noreply = "NOREPLY"; ### misc commands. ### +sub whatInterface { + if (!&IsParam("Interface") or $param{'Interface'} =~ /IRC/) { + return "IRC"; + } else { + return "CLI"; + } +} + sub doExit { my ($sig) = @_; diff --git a/src/interface.pl b/src/interface.pl deleted file mode 100644 index 1a22599..0000000 --- a/src/interface.pl +++ /dev/null @@ -1,16 +0,0 @@ -# -# interface.pl: -# Author: -# - -# use strict; # TODO - -sub whatInterface { - if (!&IsParam("Interface") or $param{'Interface'} =~ /IRC/) { - return "IRC"; - } else { - return "CLI"; - } -} - -1; -- 2.39.2