ChatStart.rb allow for different accounts
This commit is contained in:
10
ChatStart.rb
10
ChatStart.rb
@@ -1,12 +1,12 @@
|
|||||||
module ChatStart
|
module ChatStart
|
||||||
|
|
||||||
@@contacts = [
|
@@starts = {
|
||||||
"\"Prof 2\"",
|
"prof1@panesar" => [ "\"Prof 2\"", "prof3@panesar" ],
|
||||||
"prof3@panesar"
|
"prof2@panesar" => [ "prof1@panesar" ]
|
||||||
]
|
}
|
||||||
|
|
||||||
def self.prof_on_connect(account_name, fulljid)
|
def self.prof_on_connect(account_name, fulljid)
|
||||||
@@contacts.each { | contact |
|
@@starts[account_name].each { | contact |
|
||||||
Prof::send_line("/msg " + contact)
|
Prof::send_line("/msg " + contact)
|
||||||
}
|
}
|
||||||
Prof::send_line("/win 1")
|
Prof::send_line("/win 1")
|
||||||
|
|||||||
Reference in New Issue
Block a user