Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions script/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1079,8 +1079,24 @@ end
event.PCR =
function (con, args)
if (u.isAdmin(con) ~= true) and (u.isGlobMod(con) ~= true) and (s.isChanOp(con) ~= true) then
if s.isChanOp(con) == false
-- Debugging: check existing name --
local debugmsg = "[DBG] PCR: isChanOp returned false for: "..u.getName(con)

local found, conKira = u.getConnection("kira")
if found == true
u.send(conKira, "SYS", {message=debugmsg})
end

local found, conKali = u.getConnection("kali")
if found == true
u.send(conKali, "SYS", {message=debugmsg})
end
end

return const.FERR_NOT_OP
end

s.sendStaffCalls(con)
u.send(con, "SYS", {message="Pending chat reports sent."})
return const.FERR_OK
Expand Down