Author: DNB
Date: Thu Mar 31 10:41:52 2005
New Revision: 68
Modified:
branches/3.0/ChangeLog
branches/3.0/TriviaCmds.c
branches/3.0/TriviaServ.c
Log:
update to use CMD_FLAG_CHANONLY
Modified: branches/3.0/ChangeLog
==============================================================================
--- branches/3.0/ChangeLog (original)
+++ branches/3.0/ChangeLog Thu Mar 31 10:41:52 2005
@@ -2,6 +2,7 @@
Fish (F), Mark (M), DeadNotBuried (D)
==============================================================================
3.0.a3-dev
+ - update to use CMD_FLAG_CHANONLY on appropriate commands (D)
- Change Main and Alt Nickname (D)
- add option to reset channel scores automatically at set periods (D)
- add score tracking per channel (not saving yet though) (D)
Modified: branches/3.0/TriviaCmds.c
==============================================================================
--- branches/3.0/TriviaCmds.c (original)
+++ branches/3.0/TriviaCmds.c Thu Mar 31 10:41:52 2005
@@ -83,11 +83,6 @@
{
TriviaChan *tc;
- /* check command was from a channel. */
- if (!cmdparams->channel) {
- irc_prefmsg (tvs_bot, cmdparams->source, "START Command is used in Channel Only");
- return NS_FAILURE;
- }
/* find if its our channel. */
tc = (TriviaChan *)GetChannelModValue (cmdparams->channel);
if (!tc) {
@@ -111,11 +106,6 @@
{
TriviaChan *tc;
- /* check command was from a channel. */
- if (!cmdparams->channel) {
- irc_prefmsg (tvs_bot, cmdparams->source, "STOP Command is used in Channel Only");
- return NS_FAILURE;
- }
/* find if its our channel. */
tc = (TriviaChan *)GetChannelModValue (cmdparams->channel);
if (!tc) {
@@ -142,11 +132,6 @@
{
TriviaChan *tc;
- /* check command was from a channel. */
- if (!cmdparams->channel) {
- irc_prefmsg (tvs_bot, cmdparams->source, "QS Command is used in Channel Only");
- return NS_FAILURE;
- }
/* find if its our channel. */
tc = (TriviaChan *)GetChannelModValue (cmdparams->channel);
if (!tc) {
@@ -169,11 +154,6 @@
int ps=0;
TriviaChan *tc;
- /* check command was from a channel. */
- if (!cmdparams->channel) {
- irc_prefmsg (tvs_bot, cmdparams->source, "SETPOINTS Command is used in Channel Only");
- return NS_FAILURE;
- }
/* find if its our channel. */
tc = (TriviaChan *)GetChannelModValue (cmdparams->channel);
if (!tc) {
@@ -203,11 +183,6 @@
{
TriviaChan *tc;
- /* check command was from a channel. */
- if (!cmdparams->channel) {
- irc_prefmsg (tvs_bot, cmdparams->source, "PUBLIC Command is used in Channel Only");
- return NS_FAILURE;
- }
/* find if its our channel. */
tc = (TriviaChan *)GetChannelModValue (cmdparams->channel);
if (!tc) {
@@ -239,11 +214,6 @@
{
TriviaChan *tc;
- /* check command was from a channel. */
- if (!cmdparams->channel) {
- irc_prefmsg (tvs_bot, cmdparams->source, "OPCHAN Command is used in Channel Only");
- return NS_FAILURE;
- }
/* find if its our channel. */
tc = (TriviaChan *)GetChannelModValue (cmdparams->channel);
if (!tc) {
@@ -279,11 +249,6 @@
int tvs_cmd_resetscores (CmdParams* cmdparams) {
TriviaChan *tc;
- /* check command was from a channel. */
- if (!cmdparams->channel) {
- irc_prefmsg (tvs_bot, cmdparams->source, "RESETSCORES Command is used in Channel Only");
- return NS_FAILURE;
- }
/* find if its our channel. */
tc = (TriviaChan *)GetChannelModValue (cmdparams->channel);
if (!tc) {
Modified: branches/3.0/TriviaServ.c
==============================================================================
--- branches/3.0/TriviaServ.c (original)
+++ branches/3.0/TriviaServ.c Thu Mar 31 10:41:52 2005
@@ -84,13 +84,13 @@
{"CATLIST", tvs_catlist, 0, 0, tvs_help_catlist, tvs_help_catlist_oneline },
{"SCORE", tvs_cmd_score, 0, 0, NULL, NULL},
{"HINT", tvs_cmd_hint, 0, 0, NULL, NULL},
- {"START", tvs_cmd_start, 0, 0, tvs_help_start, tvs_help_start_oneline},
- {"STOP", tvs_cmd_stop, 0, 0, tvs_help_stop, tvs_help_stop_oneline},
- {"QS", tvs_cmd_qs, 1, 0, tvs_help_qs, tvs_help_qs_oneline},
- {"SETPOINTS", tvs_cmd_sp, 1, 0, tvs_help_sp, tvs_help_sp_oneline},
- {"PUBLIC", tvs_cmd_pc, 1, 0, tvs_help_pc, tvs_help_pc_oneline},
- {"OPCHAN", tvs_cmd_opchan, 1, 0, tvs_help_opchan, tvs_help_opchan_oneline},
- {"RESETSCORES", tvs_cmd_resetscores, 1, 0, tvs_help_resetscores, tvs_help_resetscores_oneline},
+ {"START", tvs_cmd_start, 0, 0, tvs_help_start, tvs_help_start_oneline, CMD_FLAG_CHANONLY},
+ {"STOP", tvs_cmd_stop, 0, 0, tvs_help_stop, tvs_help_stop_oneline, CMD_FLAG_CHANONLY},
+ {"QS", tvs_cmd_qs, 1, 0, tvs_help_qs, tvs_help_qs_oneline, CMD_FLAG_CHANONLY},
+ {"SETPOINTS", tvs_cmd_sp, 1, 0, tvs_help_sp, tvs_help_sp_oneline, CMD_FLAG_CHANONLY},
+ {"PUBLIC", tvs_cmd_pc, 1, 0, tvs_help_pc, tvs_help_pc_oneline, CMD_FLAG_CHANONLY},
+ {"OPCHAN", tvs_cmd_opchan, 1, 0, tvs_help_opchan, tvs_help_opchan_oneline, CMD_FLAG_CHANONLY},
+ {"RESETSCORES", tvs_cmd_resetscores, 1, 0, tvs_help_resetscores, tvs_help_resetscores_oneline, CMD_FLAG_CHANONLY},
{NULL, NULL, 0, 0, NULL, NULL}
};
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.