Revision: 7531
Author:   xqt
Date:     2009-10-23 11:47:29 +0000 (Fri, 23 Oct 2009)

Log Message:
-----------
detect local bots

Modified Paths:
--------------
    trunk/pywikipedia/welcome.py

Modified: trunk/pywikipedia/welcome.py
===================================================================
--- trunk/pywikipedia/welcome.py        2009-10-23 10:20:26 UTC (rev 7530)
+++ trunk/pywikipedia/welcome.py        2009-10-23 11:47:29 UTC (rev 7531)
@@ -721,7 +721,7 @@
                 break
         if someone_found:
             showStatus(5)
-            wikipedia.output(u'There is nobody to be welcomed...')
+            wikipedia.output(u'There is nobody left to be welcomed...')
         else:
             wikipedia.output(u'\nLoaded all users...')
     
@@ -761,7 +761,7 @@
         
         if someone_found:
             showStatus(5)
-            wikipedia.output(u'There is nobody to be welcomed...')
+            wikipedia.output(u'There is nobody left to be welcomed...')
         else:
             wikipedia.output(u'\nLoaded all users...')
     
@@ -810,10 +810,13 @@
                     showStatus(3)
                     wikipedia.output(u'%s has been blocked!' % users.name() )
                     continue
-                #if 'bot' in users.groups():
+                if 'bot' in users.groups():
+                    showStatus(3)
+                    wikipedia.output(u'%s is a bot!' % users.name() )
+                    continue
                 if 'bot' in users.name().lower():
                     showStatus(3)
-                    wikipedia.output(u'%s might be a bot!' % users.name() )
+                    wikipedia.output(u'%s might be a global bot!' % 
users.name() )
                     continue
                 #if globalvar.offset != 0 and 
time.strptime(users.registrationTime(), "%Y-%m-%dT%H:%M:%SZ") >= 
globalvar.offset:
                 #    
@@ -926,12 +929,12 @@
         5:'lightblue'
     }
     staMsg = {
-        0:'MSG',
+        0:'MSG  ',
         1:'NoAct',
         2:'Match',
         3:'Skip ',
         4:'Warning',
-        5:'Done',
+        5:'Done ',
     }
     wikipedia.output("\03{%s}[%s]\03{default} " % (staColor[n], staMsg[n]) , 
newline = False)
 



_______________________________________________
Pywikipedia-svn mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-svn

Reply via email to