OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   25-Apr-2005 19:55:28
  Branch: HEAD                             Handle: 2005042518552800

  Modified files:
    openpkg-src/ircii       rse.rc

  Log:
    optimize away handling even further by not sending /away (to remove
    away status) on every input, instead only on first input after an
    /away status

  Summary:
    Revision    Changes     Path
    1.3         +12 -1      openpkg-src/ircii/rse.rc
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/ircii/rse.rc
  ============================================================================
  $ cvs diff -u -r1.2 -r1.3 rse.rc
  --- openpkg-src/ircii/rse.rc  25 Apr 2005 17:03:26 -0000      1.2
  +++ openpkg-src/ircii/rse.rc  25 Apr 2005 17:55:28 -0000      1.3
  @@ -128,12 +128,23 @@
   on ^disconnect * timer 10 server 0
   
   #   Away Handling
  +alias away {
  +    if ([$0] == []) {
  +        if ([$alias.away] == [yes]) {
  +            //^away
  +            ^assign alias.away no
  +        }
  +    } {
  +        //^away $0
  +        ^assign alias.away yes
  +    }
  +}
   on ^idle 5  away I've just wandered off...
   on ^idle 10 away I'm still not back? Hmmm... but perhaps I'm coming back 
soon.
   on ^idle 20 away Well, I must be long gone. Don't keep waiting for me.
   bind ^B parse_command away
   set input_protection off
  -on -input * ^away
  +on -input * away
   on ^306 "*You have been marked as being away*"
   on ^305 "*You are no longer marked as being away*"
   set beep_when_away yes
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to