summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnsa6
1 files changed, 5 insertions, 1 deletions
diff --git a/nsa b/nsa
index c8aaca5..d9cd333 100755
--- a/nsa
+++ b/nsa
@@ -353,7 +353,11 @@ CONFIG['projects'].each_value do |cl|
end
end
channels.each_key do |c|
- bot.print "JOIN #{c}"
+ if CONFIG['channelkeys'] and CONFIG['channelkeys'].has_key?(c)
+ bot.print "JOIN #{c} #{CONFIG['channelkeys'][c]}"
+ else
+ bot.print "JOIN #{c}"
+ end
end
while (1) do