comparison src/perl.c @ 630:3d2f14064083

[gaim-migrate @ 640] some small additions committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 07 Aug 2000 05:50:17 +0000
parents a46a68d46d2b
children 94edd99b7302
comparison
equal deleted inserted replaced
629:ce8d8608d05b 630:3d2f14064083
350 dologin(0, 0); 350 dologin(0, 0);
351 } 351 }
352 } else if (!strncasecmp(command, "signoff", 7)) { 352 } else if (!strncasecmp(command, "signoff", 7)) {
353 signoff(); 353 signoff();
354 } else if (!strncasecmp(command, "away", 4)) { 354 } else if (!strncasecmp(command, "away", 4)) {
355 /* FIXME */ 355 char *message = SvPV(ST(1), junk);
356 struct away_message a;
357 g_snprintf(a.message, sizeof(a.message), "%s", message);
358 do_away_message(NULL, &a);
356 } else if (!strncasecmp(command, "back", 4)) { 359 } else if (!strncasecmp(command, "back", 4)) {
357 do_im_back(); 360 do_im_back();
358 } else if (!strncasecmp(command, "idle", 4)) { 361 } else if (!strncasecmp(command, "idle", 4)) {
359 /* FIXME */ 362 serv_set_idle(atoi(SvPV(ST(1), junk)));
360 } else if (!strncasecmp(command, "warn", 4)) { 363 } else if (!strncasecmp(command, "warn", 4)) {
361 /* FIXME */ 364 /* FIXME */
362 } 365 }
363 366
364 XSRETURN(0); 367 XSRETURN(0);