summaryrefslogtreecommitdiffstats
path: root/doc/scriptexamples/popup3.kvs
blob: 0ad7d4a6af8cfe785fd1129018229ebe80b6f343 (plain)
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
defpopup (channeltextview)
{
	item(Leave $0,40){ part $0; }
}


event (OnChannelTextViewRightClicked,default){ if("$target" != "")popup channeltextview $target; }


defpopup (querytextview)
{
	item(Whois $0,57){ whois $0; }
}


event (OnQueryTextViewRightClicked,default){  if("$target" != "")popup querytextview $target; }



defpopup (consoletextview)
{
	popup(Server queries,13)
	{
		item(Version,16)version
		item(Motd,30)motd
		item(Info,29)info
		item(Admin,29)admin
		item(Lusers,57)lusers
		item(Time,93)time
		item(Help,49)raw help
		popup(Stats,22)
		{
			item(d (debug/dns ?))stats d
			item(l (connections))stats l
			item(m (command usage))stats m
			item(o (operators))stats o
			item(t (connection stats ?),23)stats t
			item(u (uptime),93)stats u
			item(y (y-lines))stats y
			item(z (debug stats ?),11)stats z
		}
	}
}


event (OnConsoleTextViewRightClicked,default){ popup consoletextview; }