[pybot-commits] CVS: pybot/pybot/modules messages.py,1.7,1.8
Brought to you by:
niemeyer
From: Gustavo N. <nie...@us...> - 2003-08-22 02:08:33
|
Update of /cvsroot/pybot/pybot/pybot/modules In directory sc8-pr-cvs1:/tmp/cvs-serv13519/pybot/modules Modified Files: messages.py Log Message: * modules/remoteinfo.py: Introduced "allow" concept, which defines which channels/servers are allowed to "see" some remoteinfo. Index: messages.py =================================================================== RCS file: /cvsroot/pybot/pybot/pybot/modules/messages.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** messages.py 12 May 2003 20:42:21 -0000 1.7 --- messages.py 21 Aug 2003 20:32:50 -0000 1.8 *************** *** 90,93 **** --- 90,98 ---- message = m.group("message") snick = STRIPNICK.sub(r"\1", nick.lower()) + if snick == STRIPNICK.sub(r"\1", msg.server.user.nick): + msg.answer("%:", ["I'm not used to talk to myself.", + "I don't talk to myself.", + "Are you nuts?"]) + return 0 flags = "" if priv: |