From 9c391088ed730cd5a6ea0d0eab07d15512998660 Mon Sep 17 00:00:00 2001 From: Eric Blade Date: Thu, 27 Aug 2009 02:30:15 -0500 Subject: [PATCH] Tables: add " - Table " to ignore strings, so we don't attach to Absolute chat windows --- pyfpdb/Tables.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyfpdb/Tables.py b/pyfpdb/Tables.py index 082bc171..9c8c6fc6 100755 --- a/pyfpdb/Tables.py +++ b/pyfpdb/Tables.py @@ -243,6 +243,9 @@ def discover_nt_by_name(c, tablename): if 'History for table:' in titles[hwnd]: continue # Everleaf Network HH viewer window if 'HUD:' in titles[hwnd]: continue # FPDB HUD window if 'Chat:' in titles[hwnd]: continue # Some sites (FTP? PS? Others?) have seperable or seperately constructed chat windows + if ' - Table ' in titles[hwnd]: continue # Absolute table Chat window.. sigh. TODO: Can we tell what site we're trying to discover for somehow in here, so i can limit this check just to AP searches? + temp = decode_windows(c, titles[hwnd], hwnd) + #print "attach to window", temp return decode_windows(c, titles[hwnd], hwnd) return None