Advertisement
westor

Untitled

Jun 12th, 2018
601
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.87 KB | None | 0 0
  1. bind pub | !g pubm:gline
  2. bind pub | !gl pubm:gline
  3. bind pub | !gline pubm:gline
  4.  
  5. proc pubm:gline {nick host hand chan text} {
  6.   set text [split $text]
  7.   set whom6 [lindex $text 0]
  8.   set reason6 "Requested"
  9.  
  10.   if {[llength $text]>1} {
  11.     set dur [join [lrange $text 1 end]]
  12.   } else {
  13.    putquick "NOTICE $nick :Error, Incorrect parameters, please enter the duration"
  14.   }
  15.  
  16.   if {[llength $text]>1} { set reason [join [lrange $text 2 end]] }
  17.  
  18.   if {[set chost [getchanhost $whom6 $chan]] ne ""} {
  19.  
  20.     if {[string match "*.irccloud.com" $chost]} {
  21.       set mask6 [string trimleft [string tolower [lindex [split $chost "@"] 0]] "~"]@*
  22.     } else { set mask6  $whom6 }
  23.     putquick "NOTICE $nick :Glined  $whom6 ------- With Reason: $reason6"
  24.     putserv "GLINE $mask6 $dur $reason6 "
  25.   } else {
  26.     putquick "NOTICE $nick :$whom6 is not on $chan"
  27.   }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement