summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlookshe <lookshe@fumuga.com>2012-09-10 22:48:15 +0200
committerlookshe <lookshe@fumuga.com>2012-09-10 22:48:15 +0200
commit3cb7dabc47c4b2faea44dfd7a4f1957f294cb999 (patch)
tree2a834297a61857225151264ada6d2279c3d0c12e
parent009a87ffad8d3ea804dba65aedef7fddec7aa6d2 (diff)
problem binding to channel so check for channel in script
-rw-r--r--join_mitsu.tcl5
1 files changed, 4 insertions, 1 deletions
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)"
}