changeset 1181:807815928754

Allow sending a multi-line message to an agent
author Mikael Berthe <mikael@lilotux.net>
date Thu, 19 Apr 2007 21:37:50 +0200
parents 0ff57f0730d0
children c72432f8e73c
files mcabber/src/commands.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/commands.c	Fri Apr 06 23:03:55 2007 +0200
+++ b/mcabber/src/commands.c	Thu Apr 19 21:37:50 2007 +0200
@@ -1121,7 +1121,8 @@
     }
 
     bud = BUDDATA(current_buddy);
-    if (!(buddy_gettype(bud) & (ROSTER_TYPE_USER|ROSTER_TYPE_ROOM))) {
+    if (!(buddy_gettype(bud) &
+          (ROSTER_TYPE_USER|ROSTER_TYPE_AGENT|ROSTER_TYPE_ROOM))) {
       scr_LogPrint(LPRINT_NORMAL, "This is not a user.");
       goto do_msay_return;
     }