summaryrefslogtreecommitdiff
path: root/src/irc/dcc/dcc-autoget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/dcc/dcc-autoget.c')
-rw-r--r--src/irc/dcc/dcc-autoget.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/irc/dcc/dcc-autoget.c b/src/irc/dcc/dcc-autoget.c
index cb25ecf8..59e01c7b 100644
--- a/src/irc/dcc/dcc-autoget.c
+++ b/src/irc/dcc/dcc-autoget.c
@@ -25,15 +25,14 @@
#include "dcc-get.h"
-static void sig_dcc_request(DCC_REC *dcc, const char *nickaddr)
+static void sig_dcc_request(GET_DCC_REC *dcc, const char *nickaddr)
{
struct stat statbuf;
const char *masks;
char *str, *file;
int max_size;
- g_return_if_fail(dcc != NULL);
- if (dcc->type != DCC_TYPE_GET) return;
+ if (!IS_DCC_GET(dcc)) return;
/* check if we want to autoget file offer */
if (!settings_get_bool("dcc_autoget") &&