*bump*

Maybe it's not feasible to support a -z switch for the /echo command, but a couple of other thoughts:

1] If the -z switch is specified with the -t switch it causes the timestamp to be the timestamp: $asctime($msgstamp,$timestampfmt)

2] Perhaps a new event prefix can be introduced for the various on TEXT and on ACTION etc events so that /echo -t displays the server-time or znc.in/server-time[-iso] timestamp?

3] Is it possible to write an alias echo {} myself that uses the -z switch in such a way it checks whether -t is specified and, if it is, overrides the current timestamp with: $asctime($msgstamp,$timestampfmt)

Any thoughts?

edit:

I came up with this addon for PnP, but it needs further testing: (Doesn't seem to work all that beautifully)

Code:
; #= ppbouncer -rs
; ########################################
; Peace and Protection
; Bouncer (extras addon)
; ########################################

#.ppa.info off
[addon]
name=Bouncer
group=Extras
popup=Bouncer
author=acvxqs
version=1.0
url=
email=
id=ppbouncer
ppver=4.22
[files]
1=BNC.PPA
[notes]
1=This addon adds ZNC server-time support for PnP. It appends the server-time timestamp to the end of the text.
#.ppa.info end

alias echo {
  var %numtok $numtok($1-,32)
  while (%numtok > 0) {
    var %tok $gettok($1-,%numtok,32)
    if (-* iswm %tok) {
      if ((t isincs %tok) && ($msgstamp != 0)) { var %stamp $asctime($msgstamp,$timestampfmt) }
      break
    }
    dec %numtok

  }
  if (%stamp) { !echo $1- %stamp }
  else { !echo $1- }
}


Last edited by kap; 07/07/17 05:49 PM.

GNU Terry Pratchett - Looking for a mIRC help channel -> Check #mircscripting @ irc.swiftirc.net