X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=protocol.pyx;h=08c1e36e4a4cdc666272913ff72323ef30e649e2;hp=c348d7fc1b6ee420aba9a46e93936c2e16e42be4;hb=4908a8a434d0468f59a1ec3222444fee47675f16;hpb=e46b731142ce1fc0bad91a0391c1358c5e2d6405 diff --git a/protocol.pyx b/protocol.pyx index c348d7f..08c1e36 100644 --- a/protocol.pyx +++ b/protocol.pyx @@ -120,17 +120,14 @@ cdef class Protocol: if type == prefs.PURPLE_PREF_STRING: str_value = accountopt.purple_account_option_get_default_string(option) - # Google Talk default domain hackery! - if str_value == NULL and sett == "connect_server": - str_value = "talk.google.com" - + # Hack to set string "" as default value when the + # protocol's option is NULL + if str_value == NULL: + str_value = "" val = str( str_value) elif type == prefs.PURPLE_PREF_INT: int_value = accountopt.purple_account_option_get_default_int(option) - if sett == "port": - int_value = int(443) - val = int(int_value) elif type == prefs.PURPLE_PREF_BOOLEAN: