Jump to content
chain

puff.tcl

Recommended Posts

  • Administrators
set myTriga "!"

bind pub - ${myTriga}puff puff:pub
proc puff:pub {nick uhost hand chan arg} {
  global botnick
  if {[validuser [nick2hand $nick]]} {

    if {[lindex [split $arg] 0] == ""} {
      putserv "PRIVMSG $chan :\001ACTION \0033hands $nick a Bag of \0039,3*WeeD*\003\001"
      putserv "PRIVMSG $chan :\001ACTION \00314( *puff - puff* )\003\001"
      } else {
      set givenick [lindex [split $arg] 0]
      if {[isbotnick $givenick]} {putquick "PRIVMSG $chan :umm, bots don't sm0ke, you f00l!"; return}
      putserv "PRIVMSG $chan :\001ACTION \0033was asked nicely by $nick to give $givenick a Bag of \0039,3*WeeD*\003\001"
      putserv "PRIVMSG $chan :\001ACTION \00314( *puff - puff* )\003\001"
    }
    return
  }

  if {![validuser [nick2hand $nick]]} {
    if {[lindex [split $arg] 0] == ""} {
      putserv "PRIVMSG $chan :\001ACTION \0033hands $nick a Bag of \0039,3*WeeD*\003\001"
      putserv "PRIVMSG $chan :\001ACTION \00314( *puff - puff* )\003\001"
      set whom $nick
      set ignoremask *!*@[lindex [split [getchanhost $whom $chan] @] 1]
      newignore $ignoremask $botnick TempIgnore 1
      } else {
      set givenick [lindex [split $arg] 0]
      if {[isbotnick $givenick]} {putquick "PRIVMSG $chan :umm, bots don't sm0ke, you f00l!"; return}
      putserv "PRIVMSG $chan :\001ACTION \0033was asked nicely by $nick to give $givenick a Bag of \0039,3*WeeD*\003\001"
      putserv "PRIVMSG $chan :\001ACTION \00314( *puff - puff* )\003\001"
      set whom $nick
      set ignoremask *!*@[lindex [split [getchanhost $whom $chan] @] 1]
      newignore $ignoremask $botnick TempIgnore 1
    }
    return
  }
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...