Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 10th, 2012  |  syntax: None  |  size: 0.67 KB  |  hits: 6  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ##Zeile 30ff
  2. import types
  3. import random
  4. import re
  5.  
  6.  
  7.  
  8. ##Zeile 75ff
  9.     def echo(self, irc, msg, args, text):
  10.         """<text>
  11.  
  12.         Returns the arguments given it.  Uses our standard substitute on the
  13.         string(s) given to it; $nick (or $who), $randomNick, $randomInt,
  14.         $botnick, $channel, $user, $host, $today, $now, and $randomDate are all
  15.         handled appropriately.
  16.         """
  17.         text = ircutils.standardSubstitute(irc, msg, text)
  18.         if (re.match("!.*",text) == None):
  19.             irc.reply(text, prefixNick=False)
  20.         else:
  21.             irc.reply("nein, mach ich nicht", prefixNick=True)
  22.                
  23.     echo = wrap(echo, ['text'])