Author Topic: Brian Smith's IRC Server Program Thing  (Read 1938 times)

My psuedo IRC chat thing, it was a replacement for RTB while it was down. Now Im gonna release the source because MARBLEMAN was bugging me about it. You know what it does based off the title, it is written in pure Python, no external libraries used except the ones stock with python 2.7.3.
credits:
me.

Website/Download

Ill probably upload this to Github in a bit, though I have to go now.

cool

Started a chat server, for some extra cool stuff like irc messages in the chat & typing messages like this: ^Hi there!
Use this:

$Chat::Host = "99.64.96.185 ";
$Chat::Port = 4004;
function ChatGUI::pushMessage(%this,%msg)
{
   if(!isObject(ChatMessageVector))
   {
      new MessageVector(ChatMessageVector);
      ChatGUI_MessageVector.attach(ChatMessageVector);
   }
   ChatMessageVector.pushBackLin e(%msg,0);
   %msg2 = strReplace(%msg,":","\c6:");
   NewChatSO.addLine("\c2"@%msg2);
}
function m(%m){if(!ChatTCP.conn)connectChat();ChatMod_SendMessage(%m);}
package chatmessageer
{
   function NMH_Type::Send(%this)
   {
      %line = %this.getValue();
      if(getSubStr(%line,0,1) $= "^")
      {
         m(getSubStr(%this.getValue(),1,strLen(%line)));
         canvas.popDialog(NewMessageHud);
         return;
      }
      Parent::Send(%this);
   }
};
activatepackage(chatmessageer);


but if you dont want any of that, use this in console to join my server:
$Chat::Host = "99.64.96.185 "; $Chat::Port = 4004;
« Last Edit: February 17, 2013, 05:31:01 PM by MARBLE MAN »

The source isn't complete!
We need this one too:
Quote from: code
http://brianhosting.net/blockland/auth.php



« Last Edit: February 17, 2013, 05:52:48 PM by Perlin Noise »


How is it incorrect
it is not needed for the source to work
also, more people should join my chat

How is it incorrect
... Are you loving serious dude?

Something tells me you're a terrible programmer.

The source isn't complete!
We need this one too:

It's not that difficult to make. It just queries the blockland auth server. In fact, Brian, why not do it direct?

please stop using globals, brian

seriously

Something tells me you're a terrible programmer.
Holy crap you're right



I still want to know how he does it
:c

Holy crap you're right



I still want to know how he does it
:c

Sends a request to blockland auth server with IP and Name, server responds with the BLID of the player. Brian's thing is just a middleman

I'm getting a 403 error. Is anyone else?