From 3cb7dabc47c4b2faea44dfd7a4f1957f294cb999 Mon Sep 17 00:00:00 2001 From: lookshe Date: Mon, 10 Sep 2012 22:48:15 +0200 Subject: problem binding to channel so check for channel in script --- join_mitsu.tcl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/join_mitsu.tcl b/join_mitsu.tcl index f1b260f..3d82ce1 100644 --- a/join_mitsu.tcl +++ b/join_mitsu.tcl @@ -1,10 +1,13 @@ -bind join - "#mitsu_chat_runde" join_help +bind join - * join_help proc join_help {nick host hand chan} { global botnick if {$botnick == $nick} { return 0 } + if {$chan != "#mitsu_chat_runde"} { + return 0 + } putserv "PRIVMSG $chan :Willkommen im MFF-Chat $nick, stelle einfach deine Frage oder sag einfach nur Hallo. Warte bitte eine Weile auf Antwort, da die User auch ein Privatleben haben ;-) (PS: Ich bin nur ein Bot)" } -- cgit v1.2.3