Giter Club home page Giter Club logo

Comments (4)

 avatar commented on September 26, 2024

$2- on line 336 and line 337 in file spamblck.ppa and .ptm needs to be changed to $unsafe($2-); as well as version bump to denote the change.

from peace-and-protection.

anotherCoward avatar anotherCoward commented on September 26, 2024

This has to be fixed in aliases.mrc on line 447. Anything that makes use of the F-key queue could be used for this.

from peace-and-protection.

 avatar commented on September 26, 2024

Thanks for your feedback! It has been awhile since I looked at it, but I believe that there are functions (like F8 - punish) that rely on pipes..I'll have to dig up an example...

from peace-and-protection.

 avatar commented on September 26, 2024

I looked this up and tested this with the repeatedly-try-to-join-channel-if-can't-join functionality as found here. It passes a $chr(124) to the _Q.fkey alias and if I were to use $unsafe in that alias it won't work.

; $chan.cantjoin(chan)
; Halts if channel is already being retried
; Otherwise plays cant-join sound and returns fkey to use to retry that channel
alias -l chan.cantjoin {
if ($istok($hget(pnp. $+ $cid,-repjoin),$1,44)) halt
_Q.fkey 1 $calc($ctime + 200) _cidexists $cid $chr(124) scid $cid $chr(124) repjoin $1
_ssplay NoJoin
return $result
}

Reference: Wrap $3- in $unsafe stops pipes from being interpreted. So it can't be fixed here. Note: One has to be careful when creating internal functionality to use this alias. I'm going ahead and making the change to L336 and L337 in spamblock.ppa/ptm

_Q.fkey {
if ($_cfgi(reserve.fkey) isnum 0-1) var %set = $iif($ifmatch,135,246)
else var %set = $iif($1,214365,123456)
var %index = 1
:loop
if (($isalias($gettok(f7-f10-sf7-sf10-cf7-cf10,$mid(%set,%index,1),45)).alias == $3-) || ($hget(pnp,key.exp. $+ $mid(%set,%index,1)) == $null) || ($hget(pnp,key.exp. $+ $mid(%set,%index,1)) < $ctime)) {
hadd pnp key.exp. $+ $mid(%set,%index,1) $2
alias $gettok(f7-f10-sf7-sf10-cf7-cf10,$mid(%set,%index,1),45) $3-
return $gettok(F7-F10-ShiftF7-ShiftF10-CtrlF7-CtrlF10,$mid(%set,%index,1),45)
}
if (%index < $len(%set)) {
inc %index
goto loop
}
hdel -w pnp key.exp.*
hadd pnp key.exp. $+ $left(%set,1) $2
alias $gettok(f7-f10,$left(%set,1),45) $3-
return $gettok(F7-F10,$left(%set,1),45)
}

if ($1 == i) _Q.fkey 1 $calc($ctime + 120) dispa Blocked: $nick invited you to $2-
else _Q.fkey 1 $calc($ctime + 120) dispa Blocked: $iif($1 == c,$chr(40) $+ $chan $+ $chr(41)) $iif($1 isin cq,< $+ $nick $+ >) $iif($1 == n,- $+ $nick $+ $iif($chan,: $+ $chan) $+ -) $iif($1 == f,$nick :) $2-

from peace-and-protection.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.