comparison participant.py @ 124:99f3dee1fad7

code cleaning Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Wed, 13 Jan 2010 23:08:44 +0100
parents 75a03f10a863
children efdc038e757a
comparison
equal deleted inserted replaced
123:75a03f10a863 124:99f3dee1fad7
13 # 13 #
14 # You should have received a copy of the GNU General Public License 14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. 15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 16
17 17
18 import re
19 from time import sleep
20
21 from encoding import *
22 from irclib import ServerNotConnectedError, ServerConnection
18 import muc 23 import muc
19 xmpp = muc.xmpp 24 xmpp = muc.xmpp
20 del muc 25 del muc
21 from irclib import ServerNotConnectedError, ServerConnection 26
22 from encoding import * 27
23 from threading import Thread 28 class Participant:
24 from time import sleep
25 import re
26
27
28 class participant:
29 def __init__(self, owner_bridge, protocol, nickname, real_jid=None): 29 def __init__(self, owner_bridge, protocol, nickname, real_jid=None):
30 self.bot_admin = False 30 self.bot_admin = False
31 self.real_jid = real_jid 31 self.real_jid = real_jid
32 self.bridge = owner_bridge 32 self.bridge = owner_bridge
33 self.protocol = protocol 33 self.protocol = protocol