node_t *node;
struct ChannelConf *channel;
+ USE_VAR(parv);
+ USE_VAR(parc);
+ USE_VAR(msg);
+ USE_VAR(notused);
+
log_printf("IRC -> Connected to %s:%d", IRCItem->server, IRCItem->port);
/* Identify to nickserv if needed */
else
irc_send("JOIN %s", channel->name);
}
-
- USE_VAR(parv);
- USE_VAR(parc);
- USE_VAR(msg);
- USE_VAR(notused);
}
*/
static void m_ping(char **parv, unsigned int parc, char *msg, struct UserInfo *source_p)
{
+ USE_VAR(msg);
+ USE_VAR(source_p);
+
if(parc < 3)
return;
log_printf("IRC -> PING? PONG!");
irc_send("PONG %s", parv[2]);
-
- USE_VAR(msg);
- USE_VAR(source_p);
}
static void m_invite(char **parv, unsigned int parc, char *msg, struct UserInfo *source_p)
{
struct ChannelConf *channel;
+
+ USE_VAR(msg);
+ USE_VAR(source_p);
if(parc < 4)
return;
return;
irc_send("JOIN %s %s", channel->name, channel->key);
-
- USE_VAR(msg);
- USE_VAR(source_p);
}
static void m_ctcp(char **parv, unsigned int parc, char *msg, struct UserInfo *source_p)
{
+ USE_VAR(parc);
+ USE_VAR(msg);
+
if(strncasecmp(parv[3], "\001VERSION\001", 9) == 0)
{
irc_send("NOTICE %s :\001VERSION Blitzed Open Proxy Monitor %s\001",
source_p->irc_nick, VERSION);
}
-
- USE_VAR(parc);
- USE_VAR(msg);
}
static void m_userhost(char **parv, unsigned int parc, char *msg,
struct UserInfo *source_p)
{
+ USE_VAR(msg);
+ USE_VAR(source_p);
+
if(parc < 4)
return;
command_userhost(parv[3]);
-
- USE_VAR(msg);
- USE_VAR(source_p);
}
/* m_cannot_join
{
struct ChannelConf *channel;
+ USE_VAR(msg);
+ USE_VAR(source_p);
+
if(parc < 5)
return;
return;
irc_send("%s", channel->invite);
-
- USE_VAR(msg);
- USE_VAR(source_p);
}
static void m_kill(char **parv, unsigned int parc, char *msg, struct UserInfo *source_p)
{
- /* Restart bopm to rehash */
- main_restart();
-
USE_VAR(parv);
USE_VAR(parc);
USE_VAR(msg);
USE_VAR(source_p);
+
+ /* Restart bopm to rehash */
+ main_restart();
}
struct Command *cs;
node_t *node;
+ USE_VAR(msg);
+
if(OPT_DEBUG)
{
log_printf("COMMAND -> Parsing command (%s) from %s [%s]", command,
}
irc_send("USERHOST %s", source_p->irc_nick);
-
- USE_VAR(msg);
}
static void cmd_check(char *param, char *source, struct ChannelConf *target)
{
- scan_manual(param, target);
-
USE_VAR(source);
+
+ scan_manual(param, target);
}
static void cmd_stat(char *param, char *source, struct ChannelConf *target)
{
- stats_output(target->name);
-
USE_VAR(param);
USE_VAR(source);
+
+ stats_output(target->name);
}
static void cmd_fdstat(char *param, char *source, struct ChannelConf *target)
{
- fdstats_output(target->name);
-
USE_VAR(param);
USE_VAR(source);
+
+ fdstats_output(target->name);
}
struct scan_struct *ss;
struct scanner_struct *scs;
+ USE_VAR(scanner);
+ USE_VAR(notused);
+
/* Record that a scan happened */
scan_log(remote);
/* Record the proxy for stats purposes */
stats_openproxy(remote->protocol);
-
- USE_VAR(scanner);
- USE_VAR(notused);
}
struct scan_struct *ss;
struct scanner_struct *scs;
+ USE_VAR(scanner);
+ USE_VAR(notused);
+
/* Record that a scan happened */
scan_log(remote);
remote->port, scan_gettype(remote->protocol), scs->name,
remote->bytes_read);
}
-
- USE_VAR(scanner);
- USE_VAR(notused);
}
struct scan_struct *ss;
struct scanner_struct *scs;
+ USE_VAR(scanner);
+ USE_VAR(notused);
+
/* Record that a scan happened */
scan_log(remote);
remote->port, scan_gettype(remote->protocol), scs->name,
remote->bytes_read);
}
-
- USE_VAR(scanner);
- USE_VAR(notused);
}
struct scan_struct *ss;
struct scanner_struct *scs;
+ USE_VAR(scanner);
+ USE_VAR(notused);
+
scs = (struct scanner_struct *) data;
ss = (struct scan_struct *) remote->data;
ss->scans--;
scan_checkfinished(ss);
-
- USE_VAR(scanner);
- USE_VAR(notused);
}
struct scan_struct *ss;
struct scanner_struct *scs;
+ USE_VAR(scanner);
+
scs = (struct scanner_struct *) data;
ss = (struct scan_struct *) remote->data;
}
break;
}
-
- USE_VAR(scanner);
}