]> git.pld-linux.org Git - packages/eggdrop.git/commitdiff
6e7e86f17d1dde26f5af18373d731665 eggdrop1.6.13-autobotchk.patch
authorAdam Gołębiowski <adamg@pld-linux.org>
Wed, 9 Apr 2003 12:10:02 +0000 (12:10 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    eggdrop1.6.13-autobotchk.patch -> 1.1

eggdrop1.6.13-autobotchk.patch [new file with mode: 0644]

diff --git a/eggdrop1.6.13-autobotchk.patch b/eggdrop1.6.13-autobotchk.patch
new file mode 100644 (file)
index 0000000..4c46440
--- /dev/null
@@ -0,0 +1,57 @@
+--- eggdrop-1.6.10.orig/scripts/autobotchk
++++ eggdrop-1.6.10/scripts/autobotchk
+@@ -135,12 +135,12 @@
+   puts " *** ERROR: unable to open the file, permission denied"
+   puts ""
+   exit
+- } elseif {![file exists $dir/help] || ![file isdirectory $dir/help]} {
+-  puts " *** ERROR: are you sure you are running from a bot directory?"
++ } elseif {![file exists /usr/share/eggdrop/help] || ![file isdirectory /usr/share/eggdrop/help]} {
++  puts " *** ERROR: can't find /usr/share/eggdrop/help!"
+   puts ""
+   exit
+- } elseif {![file exists $dir/$binary]} {
+-  puts " *** ERROR: are you sure you are running from a bot directory?"
++ } elseif {![file exists /usr/bin/eggdrop]} {
++  puts " *** ERROR: can't find /usr/bin/eggdrop!"
+   puts ""
+   exit
+  }
+@@ -194,7 +194,7 @@
+ botdir=\"$dir\"
+ # change this to the name of your bot's script in that directory:
+-botscript=\"$binary $x\"
++botscript=\"$x\"
+ # change this to the nickname of your bot (capitalization COUNTS)
+ botname=\"${botnet-nick}\"
+--- eggdrop-1.6.10.orig/scripts/botchk
++++ eggdrop-1.6.10/scripts/botchk
+@@ -72,7 +72,7 @@
+   if test -r $userfile
+   then
+     # It's there, load the bot
+-    ./$botscript
++    $botscript
+     exit 0
+   else
+     if test -r $userfile~new
+@@ -80,7 +80,7 @@
+       # Bot f*@!ed up while saving the userfile last time.  Move it over.
+       echo "Userfile missing.  Using last saved userfile..."
+       mv -f $userfile~new $userfile
+-      ./$botscript
++      $botscript
+       exit 0
+     else
+       if test -r $userfile~bak
+@@ -88,7 +88,7 @@
+         # Userfile is missing, use backup userfile.
+         echo "Userfile missing.  Using backup userfile..."
+         cp -f $userfile~bak $userfile
+-        ./$botscript
++        $botscript
+         exit 0
+       else
+         # Well, nothing to work with...
This page took 0.0739 seconds and 4 git commands to generate.