Blog
Development
IRC - Channel protection snipet using $regex | IRC - Channel protection snipet using $regex |
|
| Written by Jimmy | |
| Monday, 21 May 2007 | |
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)
![]() 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 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 written by bengong, June 15, 2007
bodoh punye jimmy.remote ciplak.fukimak
written by Psychotron, June 16, 2007
sabor jimmy. dorang tahu pakai ja
. pastu komen cakap ciplak la itu la. biar kan written by Semut, June 16, 2007
Remote niieee atas line power leh rrr kik..
tp puas gak rrr... 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 ~ written by ayumie, October 05, 2007
jom cs..
ada clan lagi cun. 5on5 je. 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
written by ni3, November 22, 2007
banjirian tu apa ? $regex tu apa ? @.@
written by ni3, November 22, 2007
kenapa semua nak strip ? row dgn line tak nak strip ??
written by ni3, November 22, 2007
!kick $1 $2
written by ni3, November 22, 2007
sorry .. saya dak baru just tgk2 je =) .. peace!
written by Red, January 19, 2008
kalau tambah kick lebih dr 21 lg syok.. nice remote tu ajest
Write comment
|
| < Prev | Next > |
|---|





