X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=bot_NeonServ.c;h=674d116eb16b193c33e960fc649c909bb2fc5dbf;hb=4ffe61102e8c115fad747b89c3a6d86524a2033b;hp=647b3e7aecf9232a2052e38f675e832dc11ae5ff;hpb=24974ff8d82e3568d96b8473cada541c5ac6b6a3;p=NeonServV5.git diff --git a/bot_NeonServ.c b/bot_NeonServ.c index 647b3e7..674d116 100644 --- a/bot_NeonServ.c +++ b/bot_NeonServ.c @@ -26,6 +26,8 @@ static const struct default_language_entry msgtab[] = { {"NS_ADDUSER_DONE", "Added %s to the %s user list with access %d."}, {"NS_NOT_ON_USERLIST", "%s lacks access to \002%s\002."}, {"NS_NOT_ON_USERLIST_YOU", "You lack access to \002%s\002."}, + {"NS_NOT_ON_CHANNEL", "%s isn't currently in \002%s\002."}, + {"NS_NOT_ON_CHANNEL_YOU", "You aren't currently in \002%s\002."}, {"NS_DELUSER_DONE", "Deleted %s (with access %d) from the %s user list."}, {"NS_ACCESS_OUTRANKED", "You cannot give users access greater than or equal to your own."}, {"NS_USER_OUTRANKED", "\002%s\002 outranks you (command has no effect)."}, @@ -68,6 +70,8 @@ static const struct default_language_entry msgtab[] = { {"NS_MYACCESS_HEADER_INFO", "Info"}, {"NS_MYACCESS_COUNT", "%s has access in \002%d\002 channel(s) and is owner of \002%d\002 channel(s)."}, {"NS_MYACCESS_COUNT_MATCH", "%s has access in \002%d\002 channel(s) and is owner of \002%d\002 channel(s) (\002%d\002 channels matching your request)."}, + {"NS_UP_ALREADY_OP", "You are already opped in \002%s\002."}, + {"NS_UP_ALREADY_VOICE", "You are already voiced in \002%s\002."}, {NULL, NULL} }; @@ -85,7 +89,7 @@ INCLUDE ALL CMD's HERE //#include "cmd_neonserv_trim.c" //#include "cmd_neonserv_giveownership.c" #include "cmd_neonserv_users.c" -//#include "cmd_neonserv_up.c" +#include "cmd_neonserv_up.c" //#include "cmd_neonserv_down.c" //#include "cmd_neonserv_upall.c" //#include "cmd_neonserv_downall.c" @@ -226,6 +230,7 @@ void init_NeonServ() { register_command(BOTID, "unsuspend", neonserv_cmd_unsuspend, 1, CMDFLAG_REQUIRE_CHAN | CMDFLAG_REGISTERED_CHAN | CMDFLAG_REQUIRE_AUTH | CMDFLAG_CHECK_AUTH); register_command(BOTID, "delme", neonserv_cmd_delme, 0, CMDFLAG_REQUIRE_CHAN | CMDFLAG_REGISTERED_CHAN | CMDFLAG_REQUIRE_AUTH | CMDFLAG_CHECK_AUTH); register_command(BOTID, "myaccess", neonserv_cmd_myaccess, 0, CMDFLAG_REQUIRE_AUTH | CMDFLAG_CHECK_AUTH); + register_command(BOTID, "up", neonserv_cmd_up, 0, CMDFLAG_REQUIRE_CHAN | CMDFLAG_REGISTERED_CHAN); start_bots(); bind_bot_ready(neonserv_bot_ready);