{ "OSMSG_DEVNULL_SET_M", "OverrideNoAmsg: %s" },
{ "OSMSG_DEVNULL_SET_N", "MaxSendQ: %s" },
{ "OSMSG_DEVNULL_SET_N_i", "MaxSendQ: %i" },
+ { "OSMSG_DEVNULL_SET_OPME", "OpMe: %s" },
{ "OSMSG_DEVNULL_SET_DONE", "Done." },
{ "OSMSG_DEVNULL_RENAMED", "Devnull class %s renamed to %s" },
{ "OSMSG_DEVNULL_SET_INVALID", "Invalid Option for setting %s" },
static MODCMD_FUNC(cmd_mode)
{
- if (!modcmd_chanmode(argv+1, argc-1, MCP_ALLOW_OVB|MCP_KEY_FREE|MC_ANNOUNCE)) {
+ if (!modcmd_chanmode(argv+1, argc-1, MCP_ALLOW_OVB|MCP_KEY_FREE|MC_ANNOUNCE|MCP_OPERMODE)) {
reply("MSG_INVALID_MODES", unsplit_string(argv+1, argc-1, NULL));
return 0;
}
|| user->uplink->burst
|| !user->handle_info)
return;
+ else if (IsBot(user))
+ return;
else if (user->handle_info->opserv_level)
type = "OPER";
else if (IsNetworkHelper(user))
return;
if (irc_in_addr_is_valid(user->ip))
- send_channel_notice(opserv_conf.staff_auth_channel, opserv, IDENT_FORMAT" authed to %s account %s", IDENT_DATA(user), type, user->handle_info->handle);
+ send_channel_message(opserv_conf.staff_auth_channel, opserv, IDENT_FORMAT" authed to %s account %s", IDENT_DATA(user), type, user->handle_info->handle);
else
- send_channel_notice(opserv_conf.staff_auth_channel, opserv, "%s [%s@%s] authed to %s account %s", user->nick, user->ident, user->hostname, type, user->handle_info->handle);
+ send_channel_message(opserv_conf.staff_auth_channel, opserv, "%s [%s@%s] authed to %s account %s", user->nick, user->ident, user->hostname, type, user->handle_info->handle);
}
static void
count++;
}
tbl.length = count+1;
- tbl.width = 14;
+ tbl.width = 15;
tbl.flags = 0;
tbl.flags = TABLE_NO_FREE;
tbl.contents = malloc(tbl.length * sizeof(tbl.contents[0]));
tbl.contents[0][11] = "+S";
tbl.contents[0][12] = "+X";
tbl.contents[0][13] = "MaxQ";
+ tbl.contents[0][14] = "OpMe";
if(!count)
{
table_send(cmd->parent->bot, user->nick, 0, NULL, tbl);
} else {
tbl.contents[ii][13] = off;
}
+ if(DEVNULL_FLAGGED(th, MODE_OPME)) {
+ tbl.contents[ii][14] = on;
+ } else {
+ tbl.contents[ii][14] = off;
+ }
}
table_send(cmd->parent->bot, user->nick, 0, NULL, tbl);
for(ii = 1; ii < tbl.length; ++ii)
send_message_type(4, user, opserv,"+k = ChanServ Mode (mode +k)");
send_message_type(4, user, opserv,"+S = NetServ Mode (mode +S)");
send_message_type(4, user, opserv,"+X = XtraOp Mode (mode +X)");
+ send_message_type(4, user, opserv,"OpMe = ChanServ opme command");
return 1;
}
th->maxsendq = strtoul(argv[offset+3], NULL, 0);
reply("OSMSG_DEVNULL_SET_DONE");
}
+ }
+ else if(!strcmp("OPME",argv[offset+2])) {
+ if (!strcmp("OFF",argv[offset+3]) || !strcmp("0",argv[offset+3])) {
+ DEVNULL_CLEAR_FLAG(th, MODE_OPME);
+ reply("OSMSG_DEVNULL_SET_DONE");
+ } else if (!strcmp("ON",argv[offset+3]) || !strcmp("1",argv[offset+3])) {
+ DEVNULL_SET_FLAG(th, MODE_OPME);
+ reply("OSMSG_DEVNULL_SET_DONE");
+ } else {
+ reply("OSMSG_DEVNULL_SET_INVALID", argv[offset+3]);
+ }
} else {
reply("OSMSG_DEVNULL_SET_INVALID", argv[offset+2]);
}
} else {
reply("OSMSG_DEVNULL_SET_N", "off");
}
+ if(DEVNULL_FLAGGED(th, MODE_OPME)) {
+ reply("OSMSG_DEVNULL_SET_OPME", "on");
+ } else {
+ reply("OSMSG_DEVNULL_SET_OPME", "off");
+ }
}
} else {
reply("OSMSG_DEVNULL_NOTFOUND", argv[offset+1]);