* If this is set then HOPM will use it as an /away message as soon as
* it connects.
*/
- away = "I'm a bot. Your messages will be ignored.";
+ away = "I'm a bot. Your messages will be ignored.";
/*
* Info about channels you wish HOPM to join in order to accept
bin_PROGRAMS = hopm
-AM_CPPFLAGS = -DBOPM_ETCDIR="\"$(sysconfdir)\"" -DBOPM_LOGDIR="\"$(localstatedir)\""
+AM_CPPFLAGS = -DHOPM_ETCDIR="\"$(sysconfdir)\"" -DHOPM_LOGDIR="\"$(localstatedir)\""
AM_YFLAGS = -d
hopm_SOURCES = compat.c compat.h config-parser.y config-lexer.l config.c config.h \
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
SUBDIRS = libopm .
-AM_CPPFLAGS = -DBOPM_ETCDIR="\"$(sysconfdir)\"" -DBOPM_LOGDIR="\"$(localstatedir)\""
+AM_CPPFLAGS = -DHOPM_ETCDIR="\"$(sysconfdir)\"" -DHOPM_LOGDIR="\"$(localstatedir)\""
AM_YFLAGS = -d
hopm_SOURCES = compat.c compat.h config-parser.y config-lexer.l config.c config.h \
dnsbl.c dnsbl.h extern.h inet.c inet.h irc.c irc.h log.c log.h main.c match.c \
{
/* Setup IRC Block Defaults */
- IRCItem->away = DupString("I'm a bot, don't message me");
+ IRCItem->away = DupString("I'm a bot. Your messages will be ignored.");
IRCItem->mode = DupString("+cs");
- IRCItem->nick = DupString("bopm");
+ IRCItem->nick = DupString("hopm");
IRCItem->nickserv = DupString("");
IRCItem->password = DupString("");
IRCItem->port = 6667;
IRCItem->oper = DupString("undefined");
- IRCItem->username = DupString("bopm");
- IRCItem->realname = DupString("Blitzed Open Proxy Monitor");
+ IRCItem->username = DupString("hopm");
+ IRCItem->realname = DupString("Hybrid Open Proxy Monitor");
IRCItem->server = DupString("myserver.blitzed.org");
IRCItem->vhost = DupString("");
IRCItem->connregex = DupString("\\*\\*\\* Notice -- Client connecting: ([^ ]+) \\(([^@]+)@([^\\)]+)\\) \\[([0-9\\.]+)\\].*");
- IRCItem->kline = DupString("KLINE %u@%h :Open Proxy found on your host. Please visit www.blitzed.org/proxy?ip=%i for more information.");
+ IRCItem->kline = DupString("KLINE %u@%h :Open Proxy found on your host.");
/* Setup options block defaults */
OptionsItem->negcache = 0; /* 0 disabled negcache */
- OptionsItem->pidfile = DupString("bopm.pid");
+ OptionsItem->pidfile = DupString("hopm.pid");
OptionsItem->dns_fdlimit = 50;
OptionsItem->scanlog = NULL;
/* max number of nameservers used */
#define FDNS_MAX 8
/* preferred firedns config file */
-#define FDNS_CONFIG_PREF BOPM_ETCDIR "/firedns.conf"
+#define FDNS_CONFIG_PREF HOPM_ETCDIR "/firedns.conf"
/* fallback config file */
#define FDNS_CONFIG_FBCK "/etc/resolv.conf"
/* Number of seconds to wait for a reply */
/* irc_cycle
*
- * Pass control to the IRC portion of BOPM to handle any awaiting IRC events.
+ * Pass control to the IRC portion of HOPM to handle any awaiting IRC events.
*
* Parameters:
* None
* ircds (*cough* unreal *cough*) don't cause uneeded
* reconnections
*/
- irc_send("PING :BOPM");
+ irc_send("PING :HOPM");
}
}
*
* parv[0] = source
* parv[1] = USERHOST
- * parv[2] = target (bopm)
+ * parv[2] = target (hopm)
* parv[3] = :nick=(flags)user@host
*
*
*
* parv[0] = source
* parv[1] = numeric
- * parv[2] = target (bopm)
+ * parv[2] = target (hopm)
* parv[3] = channel
* parv[4] = error text
*
*
* parv[0] = source
* parv[1] = numeric
- * parv[2] = target (bopm)
+ * parv[2] = target (hopm)
* parv[3] = channel
* parv[4] = error text
*
USE_VAR(msg);
USE_VAR(source_p);
- /* Restart bopm to rehash */
+ /* Restart hopm to rehash */
main_restart();
}
unsigned int OPT_DEBUG = 0; /* Debug level */
char *CONFNAME = DEFAULTNAME;
-char *CONFDIR = BOPM_ETCDIR;
-char *LOGDIR = BOPM_LOGDIR;
+char *CONFDIR = HOPM_ETCDIR;
+char *LOGDIR = HOPM_LOGDIR;
char *CONFFILE, *LOGFILE;
struct sigaction ALARMACTION;
log_printf("MAIN -> Debug level %d", OPT_DEBUG);
- log_printf("MAIN -> BOPM %s started.", VERSION);
+ log_printf("MAIN -> HOPM %s started.", VERSION);
log_printf("MAIN -> Reading configuration file...");
config_load(CONFFILE);
/* command_parse
*
- * Parse a command to bopm (sent to a channel bopm is on). The command is parsed
+ * Parse a command to hopm (sent to a channel hopm is on). The command is parsed
* from the parameters, and if it is a known command it is stored in a queue. A
* userhost is performed on the user to check if they are an IRC operator. When
* a reply is returned (command_userhost), the command will be executed.
/* cmd_check
*
- * Start a manual scan on given IP. Parameter MUST be an IP. BOPM should not
+ * Start a manual scan on given IP. Parameter MUST be an IP. HOPM should not
* have to waste any time resolving a hostname.
*
* Parameters: