Skip to content

tu7uh.net Network Blog - Tutorial, Development, Discussion, IRC, Music, Video

Home Sitemap About Me
You are here: Home arrow Blog arrow Development arrow IRC - Channel protection snipet using $regex
IRC - Channel protection snipet using $regex E-mail
Written by Jimmy   
Monday, 21 May 2007

Kick result for the regex
Here the result you will get
Hi, today I'm going to release my IRC channel protection snippet made for banjirian. It base on regular expression or knowns as $regex on IRC. Believe it or not, this is the snippet I always use on banjirian. Alright, before I move on. You need some basic of IRC scripting, the rest just follow the step I give to you.

What is Banjirian?

Banjirian is a Malaysian IRC scripting community, founder by no one. It's like an open source community. Born on 1998 with small of group and now growing to be more then 200 users.

Alright let move on to the step, I use it on IRC version 6.2 If you don't have it, please download it at http://www.mirc.com

01Run your irc editor

02copy this code and then paste it inside the Remote section

;-------------------------------
;Regex code by Jimmy aka tu7uh
;Copyright tu7uh Network
;http://www.tu7uh.net
;-------------------------------
alias tu7uhlogo return 14tu4(7)14uh Network 4@14 http://www.tu04714uh.net
alias kickkira7 { .inc -u10 %kirakaw7 1 | return %kirakaw7 }
alias -l kick7 {
.inc -u10 %kcount7
if (%kcount7 isnum 65-85) { !kick $1 $2 $+(4,$3-,,$chr(0041)) $tu7uhlogo $+($chr(0040),04,$kickkira7,)
.hadd -u5m mb $+($2,*@www.tu7uh.net)
.timermb 1 4 .mode $1 $+(+,$str(b,$hget(mb,*).item)) $hget(mb,1).item $hget(mb,2).item $hget(mb,3).item $hget(mb,4).item $hget(mb,5).item $hget(mb,6).item $hget(mb,7).item $hget(mb,8).item $hget(mb,9).item $hget(mb,10).item $hget(mb,11).item $hget(mb,12).item
.ignore -u10 $nick
}
}
alias regex7 { if ($nick isreg $chan) { .haltdef
if ($regex($1-,/[[:cntrl:]]/g) > 49) { kick7 $chan $nick Codes | halt }
if ($regex($strip($1-),/[[:punct:]]/g) > 49) { kick7 $chan $nick Symbol | halt }
if ($regex($removecs($strip($1-),$chr(160)),/[€-ÿ]/g) > 49) { kick7 $chan $nick Ascii | halt }
if ($regex($strip($1-),/[[:digit:]]/g) > 49) { kick7 $chan $nick Numeric | halt }
if ($regex($strip($1-),/[[:upper:]]/g) > 49) { kick7 $chan $nick Caps Lock | halt }
if ($regex($strip($1-),/(http:|www|#|join|ftp:|/j)/g)) { kick7 $chan $nick Advertising | halt }
if ($regex($strip($1-),/(fuck|bitch|suck|kote|shit)/g)) { kick7 $chan $nick Bad Word | halt }
if ($regex($strip($1-),/[[:alpha:]]/g) > 199) { kick7 $chan $nick Long Text | halt }
if ($regex($strip($1-),/[ $chr(160) ]/g) > 49) { kick7 $chan $nick Blank | halt }
.inc -u3 %repeat [ $+ [ $nick ] $+ [ $chan ] $+ [ $hash($remove($strip($1-),$chr(160),$chr(32)),32) ] ]
if (%repeat [ $+ [ $nick ] $+ [ $chan ] $+ [ $hash($remove($strip($1-),$chr(160),$chr(32)),32) ] ] > 2) { kick7 $chan $nick repeat | halt }
.inc -u5 %lines [ $+ [ $nick ] $+ [ $chan ] ]
if (%lines [ $+ [ $nick ] $+ [ $chan ] ] > 4) { kick7 $chan $nick row/line | halt }
}
}
on @^*:text:*:#: regex7 $1-
on @^*:action:*:#: regex7 $1-
on @^*:notice:*:#: regex7 $1-
ctcp ^*:*:#: .haltdef | if ($nick isreg $chan) && ($me isop $chan) { kick7 $chan $nick Ctcp | halt }
on *:ctcpreply:*: .haltdef | if ($nick isreg $chan) && ($me isop $chan) { kick7 $chan $nick Ctcp Reply | halt }
raw 367:*: .halt
raw 368:*: .halt
raw 441:*: .halt
raw 478:*: .timermb off | .halt

03Save file the file

This is it, you may edit it as it suit you. You may change the logo also. This is the code. If you don't mind please leave the URL on the kick reason. Thanks!

If you find any bugs, please leave a comment below.

Comments (25)Add Comment
Walamak!
written by Psychotron, May 22, 2007
Jimmy = Sifoo smilies/cheesy.gif
Holla~
written by Jimmy, May 27, 2007
Tak ade sifoo-nya. Bukan power mane pon benda ni!~ smilies/wink.gif
Telo
written by Waa Kena beb, May 29, 2007
Konek punya jimmy Heheh smilies/tongue.gif Sifo smilies/tongue.gif
komen sket
written by edu, June 01, 2007
dari ko halt semua dalam tu baek buek halt skali jalan saja..
maksuh aku macam nie..
if ($regex($strip($1-),/[[:alpha:]]/g) > 199) { kick7 $chan $nick Long Text | halt } < yg tu jgn halt..dia akan half bila di akhir remote anda .
jadi..

.inc -u5 %lines [ $ [ $nick ] $ [ $chan ] ]
if (%lines [ $ [ $nick ] $ [ $chan ] ] > 4) { kick7 $chan $nick row/line }
haltdef
}

like this.
thankz
TQ
written by Jimmy, June 03, 2007
Salam edu and thanks edu kerana tunjuk ajar. Aku buat cam tu nak kasi dia halt terus, contoh cam flood jenis Codes, so dia tak yah nak go through read sampai .inc. dia stop read sampai Codes je sebab pc aku slow, process lembab.
:)
written by edu, June 04, 2007
tp bg pengalaman aku kalau ko guna regex biasa nie kena kurangkan half baru dia berjalan lancar remote.kire kalau kick 22 tu dia skali jalan saja x sangkut2

yg penting alias kick tu mau cantek smilies/smiley.gif
@@@
written by bengong, June 15, 2007
bodoh punye jimmy.remote ciplak.fukimak
Huh!?
written by Jimmy, June 15, 2007
Terima kasih! saya bodo! saya mane tau remote ni semua..
ler
written by Psychotron, June 16, 2007
sabor jimmy. dorang tahu pakai ja smilies/cheesy.gif. pastu komen cakap ciplak la itu la. biar kan
Crewz
written by Semut, June 16, 2007
Remote niieee atas line power leh rrr kik..
tp puas gak rrr...
sifuu
written by AbuDhabi, June 19, 2007
hye sifuu thx ek beri tunjuk ajar..
kekekek smilies/smiley.gif)
Huhu!
written by Jimmy, June 19, 2007
aEjejeje Sifu menda! dia nye remote agie mengganas smilies/cool.gif
komen ai
written by code7, July 05, 2007
erm.. remote yg cantit, kemas n ringan.. xde error tang mana2.. n bleh lg kasi perkemas procedure bracket (yakni xde conflict tang mana2).. dlm banjir, xyah pkai ignore xpaaa.. guna silent halting = bagus.. i like it!

edu gei! edu saks! miahahahahaha...

~ code7 ~
Thanks
written by Jimmy, July 05, 2007
Thanks code7. Ko tak pakai ignore ker? aku terpaksa sebab sini slow. Kalau aku tak ignore for sure aku nye kick 2 kali dia cuba kick clone yang same. Kalau random flood jgn cakap, kick 1 teros excess flood.

Anyway thanks smilies/cheesy.gif
nice :D
written by Psychotron, July 05, 2007
suka tgk komen mcm code7. nice! smilies/wink.gif
butoh la!
written by di3, August 30, 2007
jom lawan CS laaaa! (tiba2)
CS ?
written by ayumie, October 05, 2007
jom cs..
ada clan lagi cun.
5on5 je.
hek eleh! ayumi?
written by di3, October 10, 2007
oi ayumi! kau sec5 nye budak ka!? haa? kalu ye.. x yah tnya laaa! bape kali dh kite lwn!~ siot
hye!
written by ni3, November 22, 2007
banjirian tu apa ? $regex tu apa ? @.@
ermm
written by ni3, November 22, 2007
kenapa semua nak strip ? row dgn line tak nak strip ??
uhm
written by ni3, November 22, 2007
!kick $1 $2
...
written by ni3, November 22, 2007
sorry .. saya dak baru just tgk2 je =) .. peace!
Hye
written by Red, January 19, 2008
kalau tambah kick lebih dr 21 lg syok.. nice remote tu ajest
hello
written by Jimmy, January 19, 2008
line ngan repeat tak strip? Dah strip kan kot, kan aku dah jelaskan. aku strip sebab line dan pc aku slow. So nak melancarkan process aku strip lee..

ah red! dah cuba dah lebey 21. Boleh 22. Selamat mencuba.
test
written by NooBies, March 21, 2008
huh semua otai2 kat dalam nie smilies/tongue.gif

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley

security code
Write the displayed characters


busy
 
< Prev   Next >

Syndicate

Comment

Web - How to use gra...
;D test
Web - How to use gra...
Testing fsdmfdsds
Web - How to use gra...
This is a test
Web - How to use gra...
cverwcvwe
IRC - Channel protec...
huh semua otai2 kat dalam nie :P
5 New Nokia Model
I love so it
Web - How to use gra...
check12sadfasdfasdfas

[+]
  • Narrow screen resolution
  • Wide screen resolution
  • Auto width resolution
  • Increase font size
  • Decrease font size
  • Default font size