]> jfr.im git - irc/quakenet/newserv.git/blob - lua/lib/quakenet/access.lua
LUALIB: ontlz now checks that the user is opered.
[irc/quakenet/newserv.git] / lua / lib / quakenet / access.lua
1 function onstaff(nick)
2 return irc_nickonchan(nick, "#qnet.staff")
3 end
4
5 function ontlz(nick)
6 if not irc_nickonchan(nick, "#twilightzone") then
7 return false
8 end
9
10 local umodes = irc_getusermodes(nick)
11 if not umodes or not string.find(umodes, "o") then
12 return false
13 end
14 return true
15 end