IRC gateway - a new way

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Postby esteel » Fri Jul 13, 2007 8:34 pm

well the ircgateway would use the say command to say 'the chatters name and his text' to it appears like the admin would say (NICKNAME) TEXT
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby divVerent » Fri Jul 13, 2007 9:23 pm

Just watch it on irc.oftc.net, #Nexuiz-Pwayers.

You can send chat to a server by writing "hectorNex: whatever" (so you actually talk to the bot). And whatever they write on that server, you can see in the channel.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby divVerent » Fri Jul 13, 2007 9:38 pm

Dokujisan wrote:Can someone explain how exactly this works?

I know what a gateway is.
I know what IRC is.

What does this thing do?


  • pass chat messages between Nexuiz server and IRC channel
  • spam scores at end of match to the IRC channel (actually, this is the hardest part, as it has to shorten nicknames to make the next fit in one IRC message)
  • spam the channel about the server getting full or getting free slots again

What the RBI specific plugin does is:

1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby divVerent » Sat Jul 28, 2007 10:37 am

I just added NickServ authentication as a feature. It works like this:

Code: Select all
> USER ...
> NICK mywantednick
< 433 nick already in use:
  > NICK somethingelse
  < 433 nick already in use:
    > NICK somethingelse
    ....
until:
< 001 welcome to the network
? If my nickname is not what I wanted:
  > MSG NickServ GHOST mywantednick password
  > NICK mywantednick
  < 433 nick already in use: then ghost again
  until:
  > somethingelse is now known as mywantednick
> MSG NickServ IDENTIFY password
sleep one second
> JOIN #channel


Can anyone tell me if the commands I use have an one-to-one equivalent on Quakenet? If they have, I will also add Quakenet support. I need the equivalents of:

MSG NickServ IDENTIFY password: tells services that you are indeed yourself so you get autovoice or autoop when joining some channels
MSG NickServ GHOST mynickname password: kills the one currently using mynickname off the server (or on some networks, just renames him to something like Guest309) so I can now take it myself

If there are really one-to-one equivalents, I will change my code to make the commands configurable in the configuration file, like

irc_nickserv_identify = PRIVMSG NickServ :IDENTIFY $p
irc_nickserv_ghost = PRIVMSG NickServ :GHOST $n $p

so Quakenet users can just override them with whatever Quakenet wants.

Maybe I should also make a identify-only mode that, if ghosting didn't work out, still goes ahead. Currently it would try infinitely to get the nick, but first thing I will do now is make an attempts limit for that.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby divVerent » Sat Jul 28, 2007 11:06 am

Actually, I just implemented that part:

irc_nickserv_password = joshua
irc_nickserv_identify = PRIVMSG NickServ :IDENTIFY %2$s
irc_nickserv_ghost = PRIVMSG NickServ :GHOST %1$s %2$s
irc_nickserv_ghost_attempts = 3

Yes, the attempt limiting does work now too. BTW, this is %1$s and %2$s, because Perl's printf already provides this special syntax for the first and the second parameter (nick and password). Setting the attempts to 0 of course disables this ghosting.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby Ronan » Sat Jul 28, 2007 1:19 pm

for quakenet, the command to login :

Code: Select all
/msg Q@CServe.quakenet.org AUTH username password


You have to use your Q username , and an account can't be created by a script.

http://quakenet.org/faq/faq.php?c=1&f=51#51
Ronan
Alien trapper
 
Posts: 292
Joined: Tue Mar 20, 2007 10:25 pm
Location: France

Postby KadaverJack » Sat Jul 28, 2007 3:42 pm

divVerent wrote:Can anyone tell me if the commands I use have an one-to-one equivalent on Quakenet? If they have, I will also add Quakenet support. I need the equivalents of:

Quakenet doesn't have nickname reservation, so authenticating the bot on qnet is only useful if you want to give it voice/op/etc. automagically.
And i suggest you implement the challenge-response authentification instead of the simple auth command ronan posted ;)
http://www.quakenet.org/faq/faq.php?c=52&f=240#240
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby divVerent » Sat Jul 28, 2007 4:55 pm

Okay, then it may be working now.

irc_quakenet_authname = ...
irc_quakenet_password = ...

is how to configure it now.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby Ronan » Sun Jul 29, 2007 4:36 pm

Your quakenet support is working fine :wink:
Ronan
Alien trapper
 
Posts: 292
Joined: Tue Mar 20, 2007 10:25 pm
Location: France

Postby divVerent » Sun Jul 29, 2007 6:29 pm

New config file: http://paste.debian.net/33642

I finally found a way to make dp_listen an optional parameter (by getting the socket's local address after connecting it to the DP server). Only the six not commented out settings are required now. Also, unspecified port numbers are now regarded as 26000 for DP and 6667 for IRC.

Tarball updated, BTW.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Previous

Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron