Op command.

This commit is contained in:
q3k 2013-09-29 20:56:06 +02:00
parent 91d9b29d29
commit f3c58f69f1

View file

@ -48,3 +48,8 @@ plugin.AddHook('bot.UnknownCommand', 'DescribeTerm', function(Username, Channel,
end
end
end)
plugin.AddCommand('op', 1, function(Username, Channel, Target)
irc:_Send(string.format("MODE %s +o %s", Channel, Target))
end, "Give operator status to someone on the channel.", 40)