From 2ab2b3959c40e31568de6a87629a296388c4bdf2 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 2 Sep 2013 00:08:16 +0100 Subject: [PATCH] ChatStart.rb allow for different accounts --- ChatStart.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ChatStart.rb b/ChatStart.rb index bc6acd0..d3e4baa 100644 --- a/ChatStart.rb +++ b/ChatStart.rb @@ -1,12 +1,12 @@ module ChatStart - @@contacts = [ - "\"Prof 2\"", - "prof3@panesar" - ] + @@starts = { + "prof1@panesar" => [ "\"Prof 2\"", "prof3@panesar" ], + "prof2@panesar" => [ "prof1@panesar" ] + } def self.prof_on_connect(account_name, fulljid) - @@contacts.each { | contact | + @@starts[account_name].each { | contact | Prof::send_line("/msg " + contact) } Prof::send_line("/win 1")