File: _teknaprc

package info (click to toggle)
teknap 1.4-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,428 kB
  • ctags: 6,297
  • sloc: ansic: 55,591; makefile: 545; sh: 112
file content (91 lines) | stat: -rw-r--r-- 1,656 bytes parent folder | download | duplicates (2)
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
# Thanks to fudd for parts of this.

assign YOUR_NICK your_nick
assign YOUR_PASS your_pass

eval server +add bitchx.dimension6.com:8888:$YOUR_NICK:$YOUR_PASS:0
server -del opennap.fortyoz.org
server -del server.napster.com
eval server +add server.napster.com:8875:$YOUR_NICK:$YOUR_PASS:1
eval server +add wintermute.sparhawk.bc.ca:8888:$YOUR_NICK:$YOUR_PASS:0
eval server +add opennap.cx:8888:$YOUR_NICK:$YOUR_PASS:0
set connect_timeout 15

window new bind Alternative channel Alternative hide

join admins

alias lusers { /admin stats }
on connect * msg operserv usermode -port -change

assign AUTO_MUZZLE_ON_FLOOD 0
assign AUTO_MUZZLE_TIME 60


alias _unmuzzle (nick, void)
{
	unmuzzle $nick
	@ delitem(pubflood $finditem(pubflood $nick))
}


alias _check_flooder
{
	if (finditem(pubflood $0) < [0])
	{
		@ setitem(pubflood $numitems(pubflood) $0)
		whois -cmd {
			@ :_user = tr(/"//$1)
			if ((_user == [User])||(_user == [Leech]))
			{
				muzzle $0 Auto-Muzzle for $auto_muzzle_time seconds: flood
				/timer $auto_muzzle_time _unmuzzle $0
			}
		} $0
	}
}

on ^flood "% PUBLIC *" if (AUTO_MUZZLE_ON_FLOOD)
{
	switch ($2)
	{
		(Admins)
		{
			;
		}
		(opennap)
		{
			;
		}
		(*)
		{	
			_check_flooder $0
		}
	}
}

alias c (level, void)
{
	switch ($level)
	{
		(0) {admin setchanlevel $C leech}
		(1) {admin setchanlevel $C user}
		(2) {admin setchanlevel $C moderator}
		(3) {admin setchanlevel $C admin}
		(4) {admin setchanlevel $C elite}
		(*) {
			xecho -b Usage: /c <#> - leech(0)/user(1)/moderator(2)/admin(3)/elite(4)
			xecho -b    - Sets channel level to <#>
		}
	}
}

alias links (void)
{
	admin links
}

alias pingme (void)
{
	ping $N
}