emesene forum
September 09, 2010, 08:52:43 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: CACHE KEY ERRORS? NICK NOT SAVED? UPGRADE TO 1.6.2 FIRST!

REPORT ANY ISSUE HERE - PLEASE CHECK IF THE PROBLEM HAS ALREADY BEEN REPORTED FIRST -- THANKS
 
  Home   Forum   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Contacts online notifications at login (patch)  (Read 1074 times)
bitzer
Newbie
*

l33tness: 1
Offline Offline

Posts: 4


View Profile Email
« on: November 22, 2009, 03:12:46 PM »

This patch solves the annoying bug that cause signal "user-online" to be emitted on login for all available contacts in the contact list. The patch must be applied at the file SignalHandler.py in emesenelib directory.
Logged
hit^
Hero Member
*****

l33tness: 1
Offline Offline

Posts: 370


svn up´d


View Profile
« Reply #1 on: November 23, 2009, 12:36:50 AM »

Seems like working (?), even when I removed our delay completely from Controller.py

Anyway here's the correct patch (´svn diff´):
Code:
Index: emesenelib/SignalHandler.py
===================================================================
--- emesenelib/SignalHandler.py (revision 2061)
+++ emesenelib/SignalHandler.py (working copy)
@@ -189,7 +189,8 @@
         if oldStatus != status:
             common.debug('%s (%s) changed status from %s to %s' % \
             (nick, email, oldStatus, status), 'signal handler')
-            self.msn.emit('user-online', email, oldStatus)
+            if msnp.canNotify:
+                self.msn.emit('user-online', email, oldStatus)
             self.msn.emit('contact-status-change', email, status)
         
         contact = self.msn.contactManager.getContact( email )
Logged

"We are changing the world, one commit at a time."
bitzer
Newbie
*

l33tness: 1
Offline Offline

Posts: 4


View Profile Email
« Reply #2 on: November 23, 2009, 03:14:02 AM »

Ok! I hope this patch will be in svn  Grin
Logged
C10uD
ololol
Administrator
Hero Member
*****

l33tness: -9989
Offline Offline

Posts: 2327



View Profile Email
« Reply #3 on: November 23, 2009, 10:56:12 AM »

applied, thanks Smiley
Logged
bitzer
Newbie
*

l33tness: 1
Offline Offline

Posts: 4


View Profile Email
« Reply #4 on: November 23, 2009, 11:22:01 AM »

Great!
Logged
hit^
Hero Member
*****

l33tness: 1
Offline Offline

Posts: 370


svn up´d


View Profile
« Reply #5 on: November 23, 2009, 12:15:14 PM »

C10uD, isn't 20sec delay unnecessary in Controller.py now? i.e I have set it "1", instead of "20000"
Logged

"We are changing the world, one commit at a time."
C10uD
ololol
Administrator
Hero Member
*****

l33tness: -9989
Offline Offline

Posts: 2327



View Profile Email
« Reply #6 on: November 23, 2009, 01:46:06 PM »

maybe, but i fear of what m$ could do
Logged
nicolaide
Hero Member
*****

l33tness: 19
Offline Offline

Posts: 658


Feliz Habitante De La Republica Separatista

nicolas_espina@hotmail.com
View Profile WWW
« Reply #7 on: November 23, 2009, 02:28:27 PM »

Nice... Now i don't have that horrible notifications! Cheesy

Thanks a lot!
Logged

nicolaide
Hero Member
*****

l33tness: 19
Offline Offline

Posts: 658


Feliz Habitante De La Republica Separatista

nicolas_espina@hotmail.com
View Profile WWW
« Reply #8 on: November 24, 2009, 07:00:36 AM »

Is broken again or is just me!?
Logged

bitzer
Newbie
*

l33tness: 1
Offline Offline

Posts: 4


View Profile Email
« Reply #9 on: November 24, 2009, 07:20:38 AM »

Hmm...I don't think it's a good idea to remove the 20 seconds delay. I tried to reduce it but this made my patch useless.
Try to set it to 20 seconds again.
Logged
hit^
Hero Member
*****

l33tness: 1
Offline Offline

Posts: 370


svn up´d


View Profile
« Reply #10 on: November 24, 2009, 12:59:46 PM »

I have still set it to "1" (that is 0.001 secs) and no problems.

Logged

"We are changing the world, one commit at a time."
DrMotte
Jr. Member
**

l33tness: 0
Offline Offline

Posts: 5


View Profile Email
« Reply #11 on: February 25, 2010, 01:25:53 PM »

how apply the patch, can help me?
Logged
Pages: [1]
  Print  
 
Jump to:  

TinyPortal v.1.0.6 beta 2 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!