blob: 0702c906358b92000c7080001b24c424e64dc9cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
class OpMehPlugin < Plugin
def help(plugin, topic="")
return "opmeh <channel> => grant user ops in <channel>"
end
def privmsg(m)
if(m.params)
channel = m.params
else
channel = m.channel
end
target = m.sourcenick
@bot.sendq("MODE #{channel} +o #{target}")
m.okay
end
end
plugin = OpMehPlugin.new
plugin.register("opmeh")
|