Thread: Parsing output

Page 2 of 2 First 12
  • Jump to page:
    #16
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    217
    Rep Power
    0
    Thanks netytan!

    @Strike: the '.' is to distinguish a command typed in the channel from every day words. Some people use a '!' prefix, but I chose a period.
  2. #17
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    Houston, TX
    Posts
    383
    Rep Power
    13
    XxChris: okay, so you're hardcoding that?

    netytan: actually, it is the message. "PRIVMSG" is the command, according to the RFC standard, and the stuff that follows is the message.
  4. #18
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    217
    Rep Power
    0
    @Strike: Yeah I'm harcoding it. It's only going to have a few commands, and I'm not going to have much account management. By the why, we were referring to commands given to the bot, not those sent out by the bot to the server.

    Thanks for your help guys.
  6. #19
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    133
    Rep Power
    11
    Re Netytan: Yeah, rfind works. I was more thinking of regular expressions than find.
  8. #20
  9. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    How would ah i see, in that case yeah you'd probably have to reverse the string; i dont know of any way to search backwards from the re module.

    The one time i did use IRC (with MIRC) i ended up with 7 viruses in the 10 minutes i was on there so i wont be doing that again!!!

    Mark.
    programming language development: www.netytan.com Hula

Page 2 of 2 First 12
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo