Advertisement
westor

!gline

Jun 12th, 2018
666
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.73 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.   putquick "NOTICE $nick :is $text"
  8.   set whom6 [lindex $text 0]
  9.   set reason6 "Requested"
  10.   if {[llength $text]>1} { set reason [join [lrange $text 1 end]] }
  11.  
  12.   if {[set chost [getchanhost $whom6 $chan]] ne ""} {
  13.  
  14.     if {[string match "*.irccloud.com" $chost]} {
  15.       set mask6 [string trimleft [string tolower [lindex [split $chost "@"] 0]] "~"]@*
  16.     } else {  set mask6  $whom6 }
  17.     putquick "NOTICE $nick :Glined  $whom6 ------- With Reason: $reason6"
  18.     putserv "GLINE $mask6 2h $reason6 "
  19.   } else {
  20.     putquick "NOTICE $nick :$whom6 is not on $chan"
  21.   }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement