Author Topic: Quakenet issues  (Read 400 times)

Why can't I get my mod to connect to quakenet

Code: [Select]
$Connectify::Client::Server = "irc.quakenet.org";
$Connectify::Client::Port = "6667";

Code: [Select]
function Connectify_Connect()
{
if(!isObject(Connectify_TCP))
new TCPObject(Connectify_TCP);

else
      Connectify_TCP.disconnect();

%server = $Connectify::Client::Server @ ":" @ $Connectify::Client::Port;

Connectify_TCP.connect(%server);
connectifyGui.push("Connecting to server...");

Connectify_TCP.send("JOIN #Connectify" @ " \r\n");
}

#Connectify is registered with Q in it.

You have to do a lot more than just sending JOIN.

You connect to quakenet server, send a NICK, then send the USER. Wait a couple seconds for the server to catch up until you send JOIN.

You have to do a lot more than just sending JOIN.

You connect to quakenet server, send a NICK, then send the USER. Wait a couple seconds for the server to catch up until you send JOIN.
Ok, I did. It still isn't sending lines to the room though...

Code: [Select]
function Connectify_Connect()
{
if(!isObject(Connectify_TCP))
{
new TCPObject(Connectify_TCP)
{
connected = 0;
};
}

else
      Connectify_TCP.disconnect();

%server = $Connectify::Client::Server @ ":" @ $Connectify::Client::Port;

Connectify_TCP.connect(%server);
connectifyGui.push("Connecting to server...");

%guestName = "Blockhead" @ getNumKeyID();
Connectify_TCP.sendLine("NICK " @ %guestName);

if($Pref::Player::NetName !$= "" && isUnlocked())
   %userName = filterString(strReplace($Pref::Player::NetName," ","_"),"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789[]-");

else if($Pref::Player::LANName !$= "")
      %userName = filterString(strReplace($Pref::Player::LANName," ","_"),"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789[]-");
   
Connectify_TCP.sendLine("USER " @ %guestName @ " 0 * :" @ %userName@ "-" @getNumKeyID());

}

function Connectify_TCP::onConnected(%this)
{
connectifyGui.push("Connected.");
Connectify_TCP.connected = 1;
schedule(2000,0,Connectify_ConnectChannel);
}

function Connectify_ConnectChannel()
{
connectifyGui.push("Joining Channel...");
Connectify_TCP.sendLine("JOIN #Connectify");
}

Connectify_Connect() is called when the gui opens. It says it connects, and that it joins the channel, but no evidence in the channel is showing up.