Results 1 to 4 of 4

Thread: Your favorite mIRC scripts

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Member Locotes's Avatar
    Join Date
    Aug 2008
    Location
    Somewhere I belong
    Posts
    69

    Default

    This is a fix of my first script:
    Code:
    alias tban {
      if (!$3) { echo -a params missing! ex: /tban nick seconds reason | halt }
      if (($2 >= 0) && ($2 < 60)) var %time2 $2 seconds
      if ($2 >= 60) var %time2 $calc( $2 / 60 ) minute(s)
      if ($1 !isop $chan) { ban -ku $+ $2 $chan $1 2 $3- $(|) Banned for %time2 }
    }
    It's an alias now. You'll have to use it this way: /tban nick seconds reason

    This script will ban a user for a certain amount of seconds.

    Thanks to wild and Holz for helping me with this script ><

    ToDo:
    • /tbanlist
    • /tbandel

    Shouldn't be that hard
    Last edited by Locotes; 04-25-2009 at 09:42 AM.

  2. #2
    Rizon Staff
    Join Date
    Apr 2006
    Posts
    1,215

    Default

    Now that looks a lot better already.

    Sure there's more you could do (better syntax checking to make sure that the order and the given parameters are correct (regex), making sure that the given nick is on the channel, making sure that you are able to kick the user (try making a cankick() that can be used anywhere, or ask me for mine), having more specific error messages for all those, and perhaps making the reason optional.

    :b

Similar Threads

  1. Your favorite non-Hollywood movies
    By whatapath in forum TV/Movies
    Replies: 4
    Last Post: 12-02-2012, 10:40 AM
  2. What's your favorite show and movie?
    By Blake in forum TV/Movies
    Replies: 22
    Last Post: 02-24-2011, 07:38 PM
  3. mIRC Colors
    By Zericho in forum IRC client scripts and addons
    Replies: 2
    Last Post: 06-27-2010, 05:15 AM
  4. irssi scripts/triggers
    By The Compiler in forum IRC client scripts and addons
    Replies: 0
    Last Post: 04-25-2009, 08:28 AM
  5. Favorite SuperBowl Commerical
    By escnuk3r in forum Off Topic
    Replies: 2
    Last Post: 02-15-2009, 10:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •