Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Character "\" not converted?  (Read 2869 times)

0 Members and 1 Guest are viewing this topic.

PharLap

  • Guest
Character "\" not converted?
« on: October 08, 2006, 12:05:14 PM »

We are running Anope-1.7.15-svn (1152) on Rizon and had to ban some nicks that have this character at the end: \

when using "/ns forbid nick\ Reason" the user is properly renamed when he's connecting but the RESV which is being set afterwards is not set correctly. The /STATS Q output of it should look like this:

q nick\ Reason

but it looks like this:

q nick\", Reason"

So this wont prevent the nick from connecting again and it looks heavily like someone forgot to change \ to \\ before adding it to the db, since  is the escape character.

Thanks for any helpful comments >:)

- Phar Lap -
Logged

Pieter Bootsma

  • Team
  • *
  • Offline Offline
  • Posts: 189
    • http://geniusdex.net/
(No subject)
« Reply #1 on: October 08, 2006, 03:27:57 PM »

This has nothing to do with Anope. I've noticed that plexus3 stores the RESV's in nresv.conf like this:

Code: [Select]
"nick","reason"

This means that if someone enters nick\ as a nick, it will become:

Code: [Select]
"nick\","reason"

But hey, the " after nick\ is escaped now, by the \ from nick\! Plexus3 should escape the \ before writing it to nresv.conf :)

[Edited on 8-10-2006 by GeniusDex]
Logged
Pages: [1]   Go Up