예제 #1
0
파일: channels.go 프로젝트: Nyubis/mibot
func HandlePartCommand(channels []string, sender string, fromchannel string) {
	if admin.CheckAdmin(sender) {
		for _, channel := range channels {
			if verify_channel(channel) {
				bot.SendPart(channel)
			}
		}
	}
}
예제 #2
0
파일: linktitle.go 프로젝트: Nyubis/mibot
// Incoming event for @enable
func HandleEnable(_ []string, sender string, channel string) {
	if admin.CheckAdmin(sender) {
		disabled[channel] = false
		bot.SendMessage(channel, "Link reading enabled for this channel")
	}
}
예제 #3
0
파일: config.go 프로젝트: Nyubis/mibot
func HandleReload(_ []string, sender string, channel string) {
	if admin.CheckAdmin(sender) {
		core.LoadConfig()
		ReloadFunc()
	}
}