blob: 2776de60fa9fe8dac7dd2c0a76ae9744072ec862 (
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")
|