From: timriker Date: Thu, 4 Sep 2003 17:21:10 +0000 (+0000) Subject: move whatInterface to core X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=fedf6e9844a855f96ee5e59c7c6e48b3d26b0b9b;p=infobot.git move whatInterface to core git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@825 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/blootbot b/blootbot/blootbot index 5e656e7..5be7642 100755 --- a/blootbot/blootbot +++ b/blootbot/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/blootbot/src/core.pl b/blootbot/src/core.pl index 077298a..f42fb2b 100644 --- a/blootbot/src/core.pl +++ b/blootbot/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/blootbot/src/interface.pl b/blootbot/src/interface.pl deleted file mode 100644 index 1a22599..0000000 --- a/blootbot/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;