This file is indexed.

/usr/share/eiskaltdcpp/luascripts/monologue.lua is in eiskaltdcpp-scripts 2.2.9-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
--// vim:ts=4:sw=4:noet
--// monologue.lua -- Interrupt peoples monologues

monologue = {}
monologue.user = ""
monologue.count = 0
monologue.max = 6

dcpp:setListener( "chat", "monologue",
	function( hub, user, text )
		if (user:getNick() == monologue.user) and (string.find(text, "is kicking .+ because:")==nil) then
			monologue.count = monologue.count + 1
			if monologue.count >= monologue.max then
				hub:sendChat( user:getNick().." voert een diepzinnige monoloog!")
				monologue.count = 0
			end
		else
			monologue.count = 1
			monologue.user = user:getNick()
		end
	end
)

dcpp:setListener( "ownChatOut", "monologue",
	-- make sure we count ourself when checking for monologues
	function( hub, text )
		monologue.count = 0
	end
)

DC():PrintDebug( "  ** Loaded monologue.lua **" )