DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: blowssi - /me in querys, and hilights - ignores  (Read 11,968 times)

petka

  • Participant
  • Joined in 2011
  • *
  • Posts: 2
blowssi - /me in querys, and hilights - ignores
« on: August 14, 2011, 10:53 AM »
[were going to post these on https://redmine.dcisv.com/projects/blowssi but it never sent me the email so I couldn't validate the account, hope it's OK to post this here instead]

Hey, first of all, cheers for the great script, having a few issues though that I thought I'd bring up. Mainly because they're not listed as any known bugs. (and the fact that it says that /me and /actions are supposed to be fixed in the 0.2.0).

I turned on debug and this is what I were able go get.

Code: (generic)
posting /me test in a channel set with the key 12345 


12:27 Debug encrypt: 0 : send_command
12:27 Debug encrypt: 1 : /me test
12:27 Debug encrypt: 2 : Irssi::Irc::Server=HASH(0x9a57158)
12:27 Debug encrypt: 3 : Irssi::Irc::Channel=HASH(0x9a566c8)
12:27 ME: #af-test | test
12:27 Debug encrypt: 0 : send_command
12:27 Debug encrypt: 1 : /^ACTION -efnet #af-test +OK UPLLQ0mof6J1
12:27 Debug encrypt: 2 : Irssi::Irc::Server=HASH(0x9a56ea8)
12:27 Debug encrypt: 3 :


posting /me in a query, got the key by /blowkeyx cbc <user>


12:29 Debug encrypt: 0 : send_command
12:29 Debug encrypt: 1 : /me test
12:29 Debug encrypt: 2 : Irssi::Irc::Server=HASH(0x9a56d98)
12:29 Debug encrypt: 3 : Irssi::Irc::Query=HASH(0x9a5c318)
12:29 ME: nickname | test
12:29 Debug encrypt: 0 : send_command
12:29 Debug encrypt: 1 : /^ACTION -efnet nickname +OK *RzA1SnVhOUYOQLYwXXrZxg==
12:29 Debug encrypt: 2 : Irssi::Irc::Server=HASH(0x9a5bb28)
12:29 Debug encrypt: 3 :


getting and decrypting the /me test in a channel [this works, it decrypts the /me fine]


12:31 DEBUG decrypt: 0 : message_action
12:31 DEBUG decrypt: 1 : Irssi::Irc::Server=HASH(0x9a57328)
12:31 DEBUG decrypt: 2 : +OK UPLLQ0mof6J1
12:31 DEBUG decrypt: 3 : nickname
12:31 DEBUG decrypt: 4 : user@hostname
12:31 DEBUG decrypt: 5 : #af-test

gettting the /me test in a query [this doesn't work]

12:32 DEBUG decrypt: 0 : message_action
12:32 DEBUG decrypt: 1 : Irssi::Irc::Server=HASH(0x96809f8)
12:32 DEBUG decrypt: 2 : +OK *M3M0UjFOb0XTujmGhW8B8Q==
12:32 DEBUG decrypt: 3 : nickname (the sender)
12:32 DEBUG decrypt: 4 : user@hostname
12:32 DEBUG decrypt: 5 : nickname2 (the reciever)

this is what it looks like

12:32  * nickname +OK *M3M0UjFOb0XTujmGhW8B8Q==


If I manually set a key for nickname and nickname2 to 12345 I get this [just to make sure it's not the keyex thats causing it.]


12:38 Debug encrypt: 1 : /me test
12:38 Debug encrypt: 2 : Irssi::Irc::Server=HASH(0x9680c88)
12:38 Debug encrypt: 3 : Irssi::Irc::Query=HASH(0x9a5c008)
12:38 ME: nickname | test
12:38 Debug encrypt: 0 : send_command
12:38 Debug encrypt: 1 : /^ACTION -efnet nickname +OK UPLLQ0mof6J1
12:38 Debug encrypt: 2 : Irssi::Irc::Server=HASH(0x9a5c2e8)
12:38 Debug encrypt: 3 :


[doesn't decrypt the message]

12:38 DEBUG decrypt: 1 : Irssi::Irc::Server=HASH(0x9a56c28)
12:38 DEBUG decrypt: 2 : +OK UPLLQ0mof6J1
12:38 DEBUG decrypt: 3 : nickname
12:38 DEBUG decrypt: 4 : user@host
12:38 DEBUG decrypt: 5 : nickname2



The second issue is that I can't get hilights to work in channels, I've tried changing the message levels the decrypted posts get sent as, changed it to MSGLEVEL_PUBLIC [rather than MSGLEVEL_CLIENTCRAP which it was default I think], and with printlevels.pl it says the level is PUBLIC when I get them. But it still doesn't hilight anything.

Looks to be the same with /ignore


12:46    8 *: ALL -regexp -pattern test

in #af-test
12:46 <nickname> test

in #af-test2 without encryption I didn't get the MSG.


Thanks again

//petka
« Last Edit: August 14, 2011, 11:17 AM by petka »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: blowssi - /me in querys, and hilights - ignores
« Reply #1 on: August 15, 2011, 01:46 PM »
Hi petka, sorry about the redmine account, that was my fault.

But your post here is great -- we like talking on the forum better anyway :)

I'll point the blowssi author to this post since it's not something i'm familiar with, just wanted to welcome you to the site and thank you for posting.

petka

  • Participant
  • Joined in 2011
  • *
  • Posts: 2
Re: blowssi - /me in querys, and hilights - ignores
« Reply #2 on: August 24, 2011, 12:04 AM »
I'll point the blowssi author to this post since it's not something i'm familiar with, just wanted to welcome you to the site and thank you for posting.
Thanks, appreciate it. I've been playing around with it for a bit, but since I hardly know programming, less perl I'm not having much luck heh. =)

But one logical explanation to the hilight/ignore bug would be that irssi runs hilight/ignore before the script is able to decrypt the messages. I've been looking at this http://fish.secure.la/forum/viewtopic.php?f=3&t=624 which is able to hilight and ignore encrypted channels fine, but haven't been able to figure out what's done differently in that script.

Maybe something to do with this?

http://bugs.irssi.org/index.php?do=details&task_id=398&project=5&order=os&sort=desc&pagenum=14&toggleadvanced=1&order2=id&sort2=asc

I don't know, I'm just grasping at straws here heh. Anyway cheers again.

Original address: https://www.donationcoder.com/forum/index.php?topic=27634.0