ChatStart.rb check account exists

This commit is contained in:
James Booth
2013-09-02 00:10:37 +01:00
parent 2ab2b3959c
commit 2eea66796c

View File

@@ -6,9 +6,11 @@ module ChatStart
} }
def self.prof_on_connect(account_name, fulljid) def self.prof_on_connect(account_name, fulljid)
@@starts[account_name].each { | contact | if @@starts[account_name]
Prof::send_line("/msg " + contact) @@starts[account_name].each { | contact |
} Prof::send_line("/msg " + contact)
Prof::send_line("/win 1") }
Prof::send_line("/win 1")
end
end end
end end