Commit eb3044ba authored by Christian Dietrich's avatar Christian Dietrich

Fixed bug, when user called by /msg was not found

parent 8f9d0603
......@@ -30,7 +30,7 @@ install: all
@mkdir -p ${DESTDIR}${MAN1DIR}
@install -d ${DESTDIR}${BINDIR} ${DESTDIR}${MAN1DIR}
@install -m 644 COPYING README FAQ buddylist ${DESTDIR}${DOCDIR}
@install -m 644 COPYING README FAQ contrib/buddylist ${DESTDIR}${DOCDIR}
@install -m 775 si ${DESTDIR}${BINDIR}
@install -m 444 si.1 ${DESTDIR}${MAN1DIR}
@echo "installed si"
......
......@@ -563,8 +563,11 @@ proc_channels_input(Channel *c, char *buf)
return;
}
recv = silc_client_get_client_entry(name);
if(!recv)
if(!recv) {
print_out(c->silc->channel_name,
"-!- Error: No such user");
return;
}
LocalToUtf8(msg, &tmp);
if (!silc_client_send_private_message(silc_client->client,
......@@ -984,22 +987,24 @@ silc_client_get_client_entry(const char *nick)
clients = silc_client_get_clients_local(silc_client->client,
silc_client->conn,
nick, FALSE);
if(! silc_dlist_count(clients)) {
resolve_name = NULL;
/* Resolv the name */
silc_client_get_clients(silc_client->client,
silc_client->conn,
nickname,NULL,
callback_get_client_entry,
(char *)nick);
while(!resolve_name)
run_once();
if ((int) resolve_name == 1)
return NULL;
}
else {
silc_dlist_start(clients);
resolve_name = silc_dlist_get(clients);
resolve_name = NULL;
if (clients) {
if (! silc_dlist_count(clients)) {
/* Resolv the name */
silc_client_get_clients(silc_client->client,
silc_client->conn,
nickname,NULL,
callback_get_client_entry,
(char *)nick);
while(!resolve_name)
run_once();
if ((int) resolve_name == 1)
return NULL;
}
else {
silc_dlist_start(clients);
resolve_name = silc_dlist_get(clients);
}
}
return resolve_name;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment