ChatStart.rb allow for different accounts

This commit is contained in:
James Booth
2013-09-02 00:08:16 +01:00
parent 87ee5ec584
commit 2ab2b3959c

View File

@@ -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")