Jump to content
chain

TCL MSG Filter

Recommended Posts

  • Administrators
# MSG Filter v1.1

set nomsg(ignflags) "n"

set nomsg(filter) {
   "NickName"
   "NickName1"
   "#Channel"
   "#Channel1"
}
bind dcc -|- msg nomsg:filter
proc nomsg:filter {hand idx arg} {
global nomsg
set victime [string tolower [lindex $arg 0]]
foreach filter $nomsg(filter) {
   if {($victime == $filter) && ![matchattr $hand $nomsg(ignflags)|]} {
      putdcc $idx "You Don`t Have AutoriZatioN to Use .msg Those NickNames!!"
      return 0
   }
}
putserv "PRIVMSG $victime :[lrange $arg 1 end]"
putdcc $idx "Msg to [lindex $arg 0]: [lrange $arg 1 end]"
return 1
}

putlog "MSG Filter v1.1 by Neon loaded!"

 

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...