#include <pwd.h>
#include <locale.h>
#include <assert.h>
+#include <stdint.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
switch(err)
{
case DC_LOGIN_ERR_SUCCESS:
- dc_queuecmd(NULL, NULL, L"notify", L"all", L"on", NULL);
+ dc_queuecmd(NULL, NULL, L"notify", L"all", L"on", L"fn:peer", L"off", NULL);
dc_getfnlistasync(getfnlistcallback, NULL);
dc_gettrlistasync(gettrlistcallback, NULL);
updatesbar("Authenticated");
if((buf = icwcstombs(ires->argv[1].val.str, "UTF-8")) != NULL)
{
p = buf;
- /* XXX: Too NMDC-specific! */
- if(strrchr(p, '\\') != NULL)
- p = strrchr(p, '\\') + 1;
+ if(strrchr(p, '/') != NULL)
+ p = strrchr(p, '/') + 1;
gtk_tree_store_set(srchmodel, &piter, 3, p, -1);
free(buf);
}
}
dc_init();
signal(SIGCHLD, SIG_IGN);
- pubhubaddr = sstrdup("http://www.hublist.org/PublicHubList.xml.bz2");
+ pubhubaddr = sstrdup("http://dchublist.com/hublist.xml.bz2");
dcserver = sstrdup("");
if((pwent = getpwuid(getuid())) == NULL)
{