W3C home > Mailing lists > Public > www-archive@w3.org > August 2001

Scribe Bot Patches: adds join/part, binding default prefix

From: Aaron Swartz <aswartz@upclink.com>
Date: Tue, 21 Aug 2001 14:43:15 -0400
Message-Id: <200108211847.f7LIl7p18599@theinfo.org>
Cc: www-archive+scribe@w3.org
To: Dan Connolly <connolly@w3.org>
$ cvs diff
? httpAsync.pyc
? ircAsync.pyc
cvs server: Diffing .
Index: ircAsync.py
===================================================================
RCS file: /sources/public/2000/scribe-bot/ircAsync.py,v
retrieving revision 1.5
diff -r1.5 ircAsync.py
114a115,124
 >         if origin != None and '!' in origin:
 >             nick, userHost = string.split(origin, '!', 1)
 >             if '@' in userHost:
 >                 user, host = string.split(userHost, '@', 1)
 >             else:
 >                 user, host = userHost, None
 >         else:
 >             nick = origin
 >             user, host = None, None
 >
119,128d128
<
<             if '!' in origin:
<                 nick, userHost = string.split(origin, '!', 1)
<                 if '@' in userHost:
<                     user, host = string.split(userHost, '@', 1)
<                 else:
<                     user, host = userHost, None
<             else:
<                 nick = origin
<                 user, host = None
129a130,132
 >         elif args[0] == 'INVITE':
 >               target = args[1]
 >               self.onInvite(target, text, nick, user, host)
136a140,143
 >         """this is for subclasses to override"""
 >         pass
 >
 >     def onInvite(self, target, text, nick, user, host):
Index: rdfn3chat.py
===================================================================
RCS file: /sources/public/2000/scribe-bot/rdfn3chat.py,v
retrieving revision 1.7
diff -r1.7 rdfn3chat.py
17c17
< sys.path.append("/home/connolly/w3ccvs/WWW/2000/10/swap") #@@
---
 > sys.path.append("/Users/aaronsw/Projects/cwm/swap") #@@
60a61,64
 >               # set default context
 >         msgid = self.genId()
 >         self.formalStatement('@prefix : <#> .', msgid)
 >
72a77,80
 >     def onInvite(self, target, text, nick, user, host):
 >         self.todo(['JOIN',text])
 >         self.tell(nick, "OK, see you over there.")
 >
81a90
 >                 input = string.strip(input)
89c98
<                       "UTSL @ 
http://dev.w3.org/cvsweb/2000/scribe-bot/")
---
 >                       "UTSL @ 
http://dev.w3.org/cvsweb/2000/scribe-bot/ (modified by AaronSw, 
ping me for diffs)")
112a122,128
 >             elif args[0] == 'join':
 >                 self.todo(['JOIN',args[1]])
 >                 self.tell(replyTo, "OK, see you over there.")
 >             elif args[0] == 'part':
 >                 self.tell(replyTo, "OK, I'm going...")
 >                 self.tell(args[1], "Bye, bye! " + nick + " 
told me to leave.")
 >                 self.todo(['PART',args[1]])

--
[ "Aaron Swartz" ; <mailto:me@aaronsw.com> ; <http://www.aaronsw.com/> ]
Received on Tuesday, 21 August 2001 14:43:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 November 2012 14:17:14 GMT