home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.sys.apple2      Discussion about Apple II micros      56,720 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 56,041 of 56,720   
   Jeremiah Stoddard to All   
   Re: Contiki IRC   
   04 Feb 23 23:35:57   
   
   From: jstoddard@SDF.ORG   
      
   So, replying to myself:   
      
   > By the way, Contiki IRC doesn't seem to have the "msg" command implemented   
   > (necessary for identifying oneself to libera.chat's NickServ).   
      
   I glanced quickly at some information on the IRC protocol, and likewise   
   took a quick look at the Contiki IRC source code. I think I have enough of   
   an understanding to speculate that someone inexpert like myself could do   
   this, and of how to approach the problem.   
      
   The PRIVMSG command seems to be used both for private messages and for   
   messages to channels. It is already implemented in Contiki in the latter   
   context. I think "/msg" would need to send the same thing to the IRC   
   server, just with the immediately following word (rather than a channel   
   name) as the recipient.   
      
   I think a new "else if" section in the parse_line function under   
   if(line[0] == '/'), to handle "msg" can take care of recognizing the   
   command. I'll have to look a little closer at the data structures and   
   existing functions: I don't know whether ircc_msg() can be used directly,   
   or adapted to also handle this type of message, or if it would be better   
   to add a new function, like ircc_privmsg()... Either way, the line entered   
   by the user needs to be parsed a little extra to pull out the recipient   
   before grabbing the rest as the message.   
      
   I hope I'm not way off base here.   
      
   -Jeremiah   
      
   jstoddard@sdf.org   
   SDF Public Access UNIX System - http://sdf.org   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca