Password protection on server

Easy to use IRC implementation for Unity.
Raiddevs
New face
Posts: 4
Joined: Sun Nov 12, 2017 11:29 am

Password protection on server

Postby Raiddevs » Sun Nov 12, 2017 11:34 am

I tried to contact you regarding a password protected server, you post a reply in asset store but unfortunatly thats not the issue. Adding the server password to the channel password doesnt work, i need to add the password for the server on connection (ip, port, PASSWORD) but have been unable to modify the script to handle this.

Any ideas on a modified code for this, i always use protected irc servers to keep botters out and wont remove it to use a script like this, just needs modifying.

Any ideas would be greatly welcomed but in the meantime ill continue to modify the script

(no successfull connection as of yet)

Rick

User avatar
dez
L.F.A. TEAM
Posts: 416
Joined: Thu Jun 02, 2005 11:16 pm
Contact:

Re: Password protection on server

Postby dez » Tue Nov 14, 2017 2:33 am

Hi there,

the script does it as far as I know, in the standard IRC way.
which is:
JOIN #channelName password

according to spec 2812, you can use:
JOIN &channelName password

so maybe change the # to a & on line 675?

Let me know if that doesn't work.
If your IRC server requires something else, I can help you if you tell me what the syntax is to apply the password.

Raiddevs
New face
Posts: 4
Joined: Sun Nov 12, 2017 11:29 am

Re: Password protection on server

Postby Raiddevs » Wed Nov 15, 2017 7:37 am

To join our IRC server you require a password to connect, this is done automatically in the game but i need a line to add to say that when you try to connect to our chat in the game after logging in it automatically inputs

There are no passwords on the channels as we only use 2 channels, 1 as the main game chat and the other is for the admins and mods(using IRC clients).

Connect to server (IP)(Port)
Password for server - This is whats needed
Identify user

currently at the moment when you log in the game and open the chat panel it connects to server - then disconnects for PASSWORD MISMATCH.

We use a password protected server so we dont get invaded by bot users looking to cause trouble from our server and safeguards the users in the chat.

Ive seen other IRC chat scripts that use a server password connection but can not implement it into your script and we dont wanna mess about with it too much.

If i remove the server password it connects fine, no issues but we need that extra security for our players.

Sorry if this is a pain but was hoping to edit the script to allow for this security function.

User avatar
dez
L.F.A. TEAM
Posts: 416
Joined: Thu Jun 02, 2005 11:16 pm
Contact:

Re: Password protection on server

Postby dez » Thu Nov 16, 2017 1:53 am

Hmm, if I understand correctly what you mean...

According to the spec at section 3.1.1 there is a way to provide a connection password.
You can provide it with the keyword PASS

Hence, in line 351, before the nick is sent, try adding the following

Code: Select all

streamOUT.WriteLine("PASS " + yourServerPassword );
streamOUT.Flush();


I haven't tested this, but it's worth a shot...

Raiddevs
New face
Posts: 4
Joined: Sun Nov 12, 2017 11:29 am

Re: Password protection on server

Postby Raiddevs » Fri Nov 17, 2017 9:56 am

Tried adding that code but nothing

Connects to server

Looks up name

ping/pong

disconnects


(*stuck now and will stare into space for a few days and see if the solution can be found*)

User avatar
dez
L.F.A. TEAM
Posts: 416
Joined: Thu Jun 02, 2005 11:16 pm
Contact:

Re: Password protection on server

Postby dez » Fri Nov 17, 2017 1:26 pm

If you have other software that successfully connects to the server, you can either instrument it or you can run a network sniffer at the same while you run it.

The network sniffer will easily pick out the IRC messages and you can see exactly what is being sent.
Then, the problem just becomes making sure the same exact message is sent from this IRC client.

HarlandGo
New face
Posts: 1
Joined: Mon Dec 04, 2017 5:50 am

Re: Password protection on server

Postby HarlandGo » Tue Dec 12, 2017 10:36 am

dez wrote:If you have other software that successfully connects to the server, you can either instrument it or you can run a network sniffer at the same while you run it.

The network sniffer will easily pick out the IRC messages and you can see exactly what is being sent.
Then, the problem just becomes making sure the same exact message is sent from this IRC client.


Hi Dez, what's a network sniffer? I've never heard of that term before.

User avatar
dez
L.F.A. TEAM
Posts: 416
Joined: Thu Jun 02, 2005 11:16 pm
Contact:

Re: Password protection on server

Postby dez » Wed Dec 20, 2017 12:15 am

HarlandGo wrote:Hi Dez, what's a network sniffer? I've never heard of that term before.


It's just a software tool you can run on your computer that will analyze all incoming/outgoing traffic on your network card.
You can use it to see exactly what is coming and going and one of the things its helpful for is debugging network software. You can learn a lot just by browsing the content of raw packets.

Here is one I have used before, that is free and fairly handy:
https://www.wireshark.org/#download

Raiddevs
New face
Posts: 4
Joined: Sun Nov 12, 2017 11:29 am

Re: Password protection on server

Postby Raiddevs » Tue Jan 16, 2018 7:22 pm

Changed server and no server password so connects now perfectly......but

on android the android keyboard opens whenever someone sends a message to the chat. Can the inputfield be changed to a standard text box or focus taken away from the inputfield?

emojis not supported???

how do i get coloured names for moderators???

apart from that we got it all working great and with a bit of fine tweaking this is gonna be awesome.


Return to “Easy IRC Chat”

Who is online

Users browsing this forum: No registered users and 1 guest

cron