mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 08:02:13 +02:00
Don't allow sending data to dcc chats if connection isn't finished yet.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@630 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
776895eeac
commit
2e886d62f5
3 changed files with 7 additions and 5 deletions
|
|
@ -201,7 +201,7 @@ void dcc_ctcp_message(const char *target, IRC_SERVER_REC *server, DCC_REC *chat,
|
|||
{
|
||||
char *str;
|
||||
|
||||
if (chat != NULL) {
|
||||
if (chat != NULL && chat->sendbuf != NULL) {
|
||||
/* send it via open DCC chat */
|
||||
str = g_strdup_printf("%s\001%s\001", chat->mirc_ctcp ? "" :
|
||||
notice ? "CTCP_REPLY " : "CTCP_MESSAGE ", msg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue