From f23c71af59dbac854a027997f243c38628c0f65f Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 10 Nov 2011 20:26:17 +0000 Subject: added hack to check if pbot is present --- lib/main.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/main.sh b/lib/main.sh index 301dd9b..dd17cb9 100644 --- a/lib/main.sh +++ b/lib/main.sh @@ -510,6 +510,7 @@ l33t_codes for module in $modules_on_JOIN; do module_${module}_on_JOIN "$sender" "$channel" done + [[ ${sender%%!*} == pbot ]] && touch pbot_present elif [[ "$line" =~ ^:([^ ]*)\ +PART\ +(#[^ ]+)(\ +:(.*))? ]]; then sender="${BASH_REMATCH[1]}" channel="${BASH_REMATCH[2]}" @@ -519,6 +520,8 @@ l33t_codes for module in $modules_on_PART; do module_${module}_on_PART "$sender" "$channel" "$reason" done + [[ ${sender%%!*} == pbot ]] && rm -f pbot_present &> \ + /dev/null elif [[ "$line" =~ ^:([^ ]*)\ +KICK\ +(#[^ ]+)\ +([^ ]+)(\ +:(.*))? ]]; then sender="${BASH_REMATCH[1]}" channel="${BASH_REMATCH[2]}" -- cgit v1.2.3