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)
if @@starts[account_name]
@@starts[account_name].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")
end end
end
end end