示例#1
0
def commandparser(line, line2, nick, chan, host, lockdown, s2, lastlink):
	if line2[1] == "PRIVMSG" and (line2[3].startswith(":!") or line2[3].startswith(":.")):
		command = string.lower(line2[3][2:])
		if command == "refreshrc":
                        actionlevel = cparser.authtest(host, chan)
                        if actionlevel[4]==1:
                                return
                        else:
                                refreshRClist()
                                reply("RC List refreshed.", chan, nick)
                        return
		thread.start_new_thread(meta_reporting,(line2, nick, chan, command))
		authorization = cparser.authtest(host, chan)
		if command != "null" and lockdown != "true":
			 cparser.main(command, line, line2, nick, chan, host, authorization, notice, say, reply, s, s2, lastlink)
示例#2
0
文件: main.py 项目: awnowlin/lisabot
def commandparser(line, line2, nick, chan, host, lockdown, s2, lastlink):
	if line2[1] == "PRIVMSG" and (line2[3].startswith(":!") or line2[3].startswith(":.")):
		command = string.lower(line2[3][2:])
		thread.start_new_thread(meta_reporting,(line2, nick, chan, command))
		authorization = cparser.authtest(host, chan, "no")
		if command != "null" and lockdown != "true":
			 cparser.main(command, line, line2, nick, chan, host, authorization, notice, say, reply, s, s2, lastlink)