X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=account.pyx;h=db56e2c4873dddf5774c9930d9a738f93dd4add5;hp=7240de2620309b7260ade83fc3aaa29c78c61d1f;hb=4908a8a434d0468f59a1ec3222444fee47675f16;hpb=e46b731142ce1fc0bad91a0391c1358c5e2d6405;ds=sidebyside diff --git a/account.pyx b/account.pyx index 7240de2..db56e2c 100644 --- a/account.pyx +++ b/account.pyx @@ -133,9 +133,10 @@ cdef class Account: str_value = accountopt.purple_account_option_get_default_string(option) - # Google Talk default domain hackery! - if str_value == NULL and str( label_name) == "Connect server": - str_value = "talk.google.com" + # Hack to set string "" as default value to Account options when + # the default value of the protocol is NULL + if str_value == NULL: + str_value = "" str_value = account.purple_account_get_string(c_account, setting, str_value) val = str( str_value)