From 99681ec568fb057cabd12c24813ce71e0d7fe271 Mon Sep 17 00:00:00 2001 From: yvesf Date: Sat, 12 Dec 2009 23:38:51 +0000 Subject: clean git-svn-id: http://xapek.org/svn/common/omegle@1484 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd --- omegle/icqBuddy.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'omegle/icqBuddy.py') diff --git a/omegle/icqBuddy.py b/omegle/icqBuddy.py index cd34cd4..c51419f 100644 --- a/omegle/icqBuddy.py +++ b/omegle/icqBuddy.py @@ -2,6 +2,7 @@ # -*- vim: encoding: utf-8 -*- # Yves Fischer, xapek.org 2009 import sys +import random from twisted.words.protocols import oscar from twisted.internet import reactor @@ -13,6 +14,15 @@ from icq import ExtendedBOSConnection, ReconnectOscarFactory ICQ_UIN = '446323989' ICQ_PASSWORD = 'gagaga' +def random_greetings(): + gr = ( + "Sup dawg, we heard u need some stranger in ur chatroom, so we put a Stranger in ur chatroom so u can chat with him while u chat with others (until you type %disconnect% anywhere)", + "Connected with Omegle, be retarted with strangers!", + "Omegle ... its like pedo-roulette", + "Under law 153:276:935 section 864, Omegle is required to inform you that the person you are currently chatting with owns the IP address of a registered sex offender. Please be careful when chatting with this person, and remember never to give out your personal information. The person you are chatting with cannot see this message.", + ) + return "==== %s" % gr[random.randint(0,len(gr)-1)] + class OmegleICQChat(OmegleChat): def __init__(self,icqconn,user): self.user = user @@ -45,7 +55,7 @@ class OmegleICQChat(OmegleChat): def on_connect(self): print "Omegle->%s: (connected)" % self.user - self.send_icqconn( "== Sup dawg, we heard u need some stranger in ur chatroom, so we put a Stranger in ur chatroom so u can chat with him while u chat with others (until you type %disconnect% anywhere) ==" ) + self.send_icqconn( random_greetings() ) def on_disconnect(self): print "Omegle->%s: (disconnected)" % self.user -- cgit v1.2.1