Explorar el Código

* mIRC script improvements for blank secpass/authkey

svn: 547
Bryan Drewery hace 22 años
padre
commit
b7b3e144d0
Se han modificado 1 ficheros con 25 adiciones y 4 borrados
  1. 25 4
      scripts/mIRC/wraith.mrc

+ 25 - 4
scripts/mIRC/wraith.mrc

@@ -9,17 +9,38 @@ alias setauth {
   if (!$3) {
     echo -a usage: /setauth password secpass authkey <botnick>
     echo -a <botnick> is optional if the authkey specified is for that bot only...
+    echo -a Use a . in place of a param if you do not have one set yet. (pass excluded)
   }
   else {
     if ($4) {
       set %w.pass. $+ $4 $1
-      set %w.secpass. $+ $4 $2
-      set %w.authkey. $+ $4 $3 
+      if ($2 != .) {
+        set %w.secpass. $+ $4 $2
+      } 
+      else {
+        set %w.secpass. $+ $4
+      }
+      if ($3 != .) {
+        set %w.authkey. $+ $4 $3
+      } 
+      else {
+        set %w.authkey. $+ $4
+      }
     }
     else {
       set %w.pass $1
-      set %w.secpass $2
-      set %w.authkey $3
+      if ($2 != .) {
+        set %w.secpass $2
+      } 
+      else {
+        set %w.secpass
+      }
+      if ($3 != .) {
+        set %w.authkey $3
+      } 
+      else {
+        set %w.authkey
+      }
     }
     echo -a set!
   }