示例#1
0
def cb_add(md, type, tid, params):
	t = params.split()
	type = t[0]
	if type == 'RL' or type == 'FL':
		email = t[2]
	if type == 'RL':
		equeue.append('UADD %s\n' % email)
	elif type == 'FL':
		equeue.append('ADDFL %s\n' % email)
	msncb.cb_add(md, type, tid, params)
示例#2
0
def cb_add(md, type, tid, params):
    t = params.split(' ')
    type = t[0]
    if type == 'RL' or type == 'FL':
        email = t[2]
        nick = urllib.unquote(t[3])
    if type == 'RL':
        out = ('%s (%s) ' % (email, nick)) \
            + 'has added you to his contact list'
        debug(out)
        beep()
    elif type == 'FL':
        out = ('%s (%s) ' % (email, nick)) \
            + 'has been added to your contact list'
        debug(out)
    msncb.cb_add(md, type, tid, params)
示例#3
0
 def test_9_cb_add_WithArgs_Pass_With_Only_Valid_Arguments(self):
     msncb.cb_add(5, 'TestStr', 'TestStr', 'TestStr')
示例#4
0
	def test_9_cb_add_WithArgs_Pass_With_Only_Valid_Arguments(self):
		msncb.cb_add(5,'TestStr','TestStr','TestStr')