Changeset 658dc2f


Ignore:
Timestamp:
Jun 24, 2003, 11:40:59 PM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
e75713e
Parents:
ce7db4d
Message:
Don't allow sending to AIM users with spaces
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    rce7db4d r658dc2f  
    2020        zwrite -m now logs and displays an outgoing message
    2121        zwrite -s now works
     22        Don't allow sending to AIM users with spaces
    2223
    23242.0.4-pre-1
  • commands.c

    rce7db4d r658dc2f  
    15461546
    15471547char *owl_command_aimwrite(int argc, char **argv, char *buff) {
     1548  char *newbuff;
     1549  int i, j;
     1550 
    15481551  if (!owl_global_is_aimloggedin(&g)) {
    15491552    owl_function_makemsg("You are not logged in to AIM.");
     
    15561559  }
    15571560
    1558   owl_function_aimwrite_setup(buff);
    1559   owl_global_set_buffercommand(&g, buff);
     1561  /* squish arguments together to make one screenname w/o spaces for now */
     1562  newbuff=owl_malloc(strlen(buff)+5);
     1563  sprintf(newbuff, "%s ", argv[0]);
     1564  j=argc-1;
     1565  for (i=0; i<j; i++) {
     1566    strcat(newbuff, argv[i+1]);
     1567  }
     1568   
     1569  owl_function_aimwrite_setup(newbuff);
     1570  owl_global_set_buffercommand(&g, newbuff);
     1571  owl_free(newbuff);
    15601572  return(NULL);
    15611573}
Note: See TracChangeset for help on using the changeset viewer.