Changeset 843 for branches/ithildin-1.1
- Timestamp:
- 05/12/09 02:16:47 (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
r842 r843 47 47 * argv[3] == npc text 48 48 */ 49 CLIENT_COMMAND(npc, 3, 3, COMMAND_FL_REGISTERED ) {49 CLIENT_COMMAND(npc, 3, 3, COMMAND_FL_REGISTERED | COMMAND_FL_FOLDMAX) { 50 50 static client_t fake_client; 51 51 … … 81 81 /* copy as much of the nick as possible, reserve space for underscoring */ 82 82 if (find_client(argv[2]) != NULL) { 83 /* XXX: Don't hardcode this. */ 84 sendto_one(cli, "NOTICE", ":NPC nickname %s is in use by a different user.", 85 argv[2]); 83 sendto_one(cli, "NOTICE", ":NPC name %s is in use by an existing user and " 84 "is not available at this time.", argv[2]); 86 85 return COMMAND_WEIGHT_LOW; 87 86 } else if (strlen(argv[2]) > NICKLEN - 2) { 88 sendto_one(cli, "NOTICE", ":NPC n ickname %s is too long (maximum is %d letters)",87 sendto_one(cli, "NOTICE", ":NPC name %s is too long (maximum is %d letters)", 89 88 argv[2], NICKLEN - 2); 90 89 return COMMAND_WEIGHT_LOW; 90 } else { 91 if (can_can_nick_client(cli, argv[2])) { 92 sendto_one(cli, "NOTICE", ":NPC name %s is not available for use.", 93 argv[2]); 94 return COMMAND_WEIGHT_LOW; 95 } 91 96 } 97 92 98 snprintf(fake_client.nick, NICKLEN, "%s", argv[2]); 93 99
Note: See TracChangeset
for help on using the changeset viewer.
