comparison mcabber/src/commands.c @ 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 10733d7de004
children 16abe7ec3056
comparison
equal deleted inserted replaced
1180:0ff57f0730d0 1181:807815928754
1119 scr_LogPrint(LPRINT_NORMAL, "Whom are you talking to?"); 1119 scr_LogPrint(LPRINT_NORMAL, "Whom are you talking to?");
1120 goto do_msay_return; 1120 goto do_msay_return;
1121 } 1121 }
1122 1122
1123 bud = BUDDATA(current_buddy); 1123 bud = BUDDATA(current_buddy);
1124 if (!(buddy_gettype(bud) & (ROSTER_TYPE_USER|ROSTER_TYPE_ROOM))) { 1124 if (!(buddy_gettype(bud) &
1125 (ROSTER_TYPE_USER|ROSTER_TYPE_AGENT|ROSTER_TYPE_ROOM))) {
1125 scr_LogPrint(LPRINT_NORMAL, "This is not a user."); 1126 scr_LogPrint(LPRINT_NORMAL, "This is not a user.");
1126 goto do_msay_return; 1127 goto do_msay_return;
1127 } 1128 }
1128 1129
1129 buddy_setflags(bud, ROSTER_FLAG_LOCK, TRUE); 1130 buddy_setflags(bud, ROSTER_FLAG_LOCK, TRUE);