libpurple/protocols/qq/qq.c

branch
cpw.resiak.disconnectreason
changeset 21279
40685e1f50ca
parent 20453
ca530c968a1b
child 21281
3cfa8d1bffab
equal deleted inserted replaced
21278:19f6ce8ee4ad 21279:40685e1f50ca
134 qq_port = use_tcp ? QQ_TCP_QUERY_PORT : QQ_UDP_PORT; 134 qq_port = use_tcp ? QQ_TCP_QUERY_PORT : QQ_UDP_PORT;
135 135
136 purple_connection_update_progress(gc, _("Connecting"), 0, QQ_CONNECT_STEPS); 136 purple_connection_update_progress(gc, _("Connecting"), 0, QQ_CONNECT_STEPS);
137 137
138 if (qq_connect(account, qq_server, strtol(qq_port, NULL, 10), use_tcp, FALSE) < 0) 138 if (qq_connect(account, qq_server, strtol(qq_port, NULL, 10), use_tcp, FALSE) < 0)
139 purple_connection_error_reason(gc, PURPLE_REASON_NETWORK_ERROR, 139 purple_connection_error_reason(gc, PURPLE_CONNECTION_ERROR_NETWORK_ERROR,
140 _("Unable to connect.")); 140 _("Unable to connect."));
141 } 141 }
142 142
143 /* directly goes for qq_disconnect */ 143 /* directly goes for qq_disconnect */
144 static void _qq_close(PurpleConnection *gc) 144 static void _qq_close(PurpleConnection *gc)

mercurial