|
Re: Night Regulator [message #226289 is a reply to message #225740] |
Thu, 12 October 2006 08:20 |
|
Nightma12
Messages: 2593 Registered: August 2003
Karma: 0
|
General (2 Stars) Category Moderator |
|
|
Quote: | NR had no way around(that im aware of) of making mods log in to get thier status.
|
do you mean auto-login? if so... ive explained this time and time again, its a BIG security issue
Quote: | NR can't regulator the amount of text it is sending to the IRC server.
|
yes you can... you can disable it on the Advanced Settings tab (disable what gets outputted)
Quote: | Your limited to talking the irc owner into giving your bot irc op status or using nightmas irc server. Which is kinda stupid as well.
|
or disable some of the output options, or bitch to unreal to make a better "fake-lag" feature
Quote: | NR does also have alot of useless commands, especially on servers where the mods are totally ignorant.
|
ya dont like them, disable them!
i will have them disabled by default on 3.5
Quote: | The problem I have with NR is inefficent routines, if you ever get to see some of the coding, you will see this.
|
and lol, NR was my first ever program, take a look at some of the things that were coded recently, compared to the things that were coded first
[Updated on: Thu, 12 October 2006 08:42] Report message to a moderator
|
|
|
|
|
Re: Night Regulator [message #226511 is a reply to message #225740] |
Fri, 13 October 2006 15:52 |
|
jnz
Messages: 3396 Registered: July 2006 Location: 30th century
Karma: 0
|
General (3 Stars) |
|
|
here is a snippet from the parse function
else if(command == "!gameover")
{
ostringstream pID_s;
pID_s << obj->Player_Name;
if(is_admin(pID_s.str()) == 1)
{
oss << "msg Gameover in 5 seconds!";
Send_Message((char *)oss.str().c_str(), IP2Long(IP), (short)atoi(Port.c_str()));
Sleep(5000);
oss.str();
Send_Message("gameover", IP2Long(IP), (short)atoi(Port.c_str()));
}
else
{
LOG("get_player_id called on line 535. parse.cpp\n");
string pID = get_player_id((char *)obj->Player_Name.c_str());
string id, playername;
splitstring(pID, ": ", id, playername);
oss << "ppage " << id << " you need to be an admin to perform this command";
Send_Message((char *)oss.str().c_str(), IP2Long(IP), (short)atoi(Port.c_str()));
}
}
the reason
LOG("get_player_id called on line 535. parse.cpp\n");
is there is because i have a bug i am trying to ger rid of
|
|
|
Re: Night Regulator [message #226566 is a reply to message #225740] |
Fri, 13 October 2006 23:54 |
dead6re
Messages: 602 Registered: September 2003
Karma: 0
|
Colonel |
|
|
Use? Means you can turn debugging on easily.
#define DEBUG
#ifndef DEBUG
Let all your wishes be granted except one, so you will still have something to strieve for.
|
|
|
|
|
|
|