Browse Source

accept single post name without list

Darren Ranalli 21 years ago
parent
commit
097ce080d6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      direct/src/showbase/BulletinBoardWatcher.py

+ 2 - 0
direct/src/showbase/BulletinBoardWatcher.py

@@ -11,6 +11,8 @@ class BulletinBoardWatcher(DirectObject.DirectObject):
     def __init__(self, name, postNames, callback):
         self.notify.debug('__init__: %s, %s, %s' % (name, postNames, callback))
         self.name = name
+        if type(postNames) == type(''):
+            postNames = [postNames]
         self.postNames = postNames
         self.callback = callback
         self.waitingOn = {}