bind raw - 311 check:gecos
proc check:gecos {from keyword text} {
if {![string match -nocase "*znc*morrison*" $text]} {return}
# change this numeric to the number for the nickname of offending user (currently set to 4 for example)
set nicktoban [lindex [split $text] 4]
set hosttoban [getchanhost $nicktoban]
# Please read the tcl-commands.doc file inside ~/eggdrop/doc to understand newban, and either set a lifetime or allow global-ban-time
newban *!*$hosttoban $::botnick "This ZNC is unwanted in this channel."
}
Last edited by Get_A_Fix on Fri Jan 27, 2017 9:29 am, edited 1 time in total.
We explore.. and you call us criminals. We seek after knowledge.. and you call us criminals. We exist without skin color, without nationality, without religious bias.. and you call us criminals.
bind raw - 311 check:gecos
proc check:gecos {from keyword text} {
if {![string match -nocase "*znc*morrison*" $text]} {return}
# change this numeric to the number for the nickname of offending user (currently set to 4 for example)
set nicktoban [lindex [split $text] 4]
set hosttoban getchanhost $nicktoban
# Please read the tcl-commands.doc file inside ~/eggdrop/doc to understand newban, and either set a lifetime or allow global-ban-time
newban *!*$hosttoban $::botnick "This ZNC is unwanted in this channel."
}
Solved, thanks
If you do not understand my ideas is because I can not think in English, I help me with Google Translate. I only speak Spanish. Bear with me. Thanks
# change this numeric to the number for the nickname of offending user (currently set to 4 for example)
set nicktoban [lindex [split $text] 4]
as stated, you would change the 4 to whatever numeric the nickname is.
We explore.. and you call us criminals. We seek after knowledge.. and you call us criminals. We exist without skin color, without nationality, without religious bias.. and you call us criminals.