Changeset 837 for branches/ithildin-1.1/modules/ircd/commands/npc.c
- Timestamp:
- 05/11/09 01:53:14 (3 years ago)
- File:
-
- 1 edited
-
branches/ithildin-1.1/modules/ircd/commands/npc.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/ithildin-1.1/modules/ircd/commands/npc.c
r836 r837 68 68 sendto_one(cli, RPL_FMT(cli, ERR_NOSUCHCHANNEL), argv[1]); 69 69 return COMMAND_WEIGHT_LOW; 70 } 71 if (!chanmode_isset(chan, npc_chanmode)) { 70 } else if (!chanmode_isset(chan, npc_chanmode)) { 72 71 sendto_one(cli, RPL_FMT(cli, ERR_CANNOTSENDTOCHAN), argv[1]); 73 72 return COMMAND_WEIGHT_LOW; 73 } else if (!CLIENT_MASTER(cli)) { 74 sendok = can_can_send_channel(cli, chan, argv[3]); 75 if (sendok > 0) { 76 sendto_one(cli, RPL_FMT(cli, sendok), chan->name); 77 return COMMAND_WEIGHT_MEDIUM; 78 } 74 79 } 75 80 … … 83 88 84 89 if (MYCLIENT(cli)) { 85 if (!CLIENT_MASTER(cli)) {86 sendok = can_can_send_channel(cli, chan, argv[3]);87 if (sendok > 0) {88 sendto_one(cli, RPL_FMT(cli, sendok), chan->name);89 return COMMAND_WEIGHT_MEDIUM;90 }91 }92 93 90 /* calculate against: ":nick!user@host PRIVMSG #channel :blah (Sender)\r\n" 94 91 * which is the most antiquated way of passing messages. */
Note: See TracChangeset
for help on using the changeset viewer.
