Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/commands.c @ 631:423c24e5875a
Allow sending a message to an agent
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 23 Dec 2005 19:16:30 +0100 |
parents | b75f4105ce32 |
children | f84cce8382e8 |
comparison
equal
deleted
inserted
replaced
630:713ba1932382 | 631:423c24e5875a |
---|---|
621 scr_LogPrint(LPRINT_NORMAL, "Who are you talking to??"); | 621 scr_LogPrint(LPRINT_NORMAL, "Who are you talking to??"); |
622 return; | 622 return; |
623 } | 623 } |
624 | 624 |
625 bud = BUDDATA(current_buddy); | 625 bud = BUDDATA(current_buddy); |
626 if (!(buddy_gettype(bud) & (ROSTER_TYPE_USER|ROSTER_TYPE_ROOM))) { | 626 if (!(buddy_gettype(bud) & |
627 (ROSTER_TYPE_USER|ROSTER_TYPE_AGENT|ROSTER_TYPE_ROOM))) { | |
627 scr_LogPrint(LPRINT_NORMAL, "This is not a user"); | 628 scr_LogPrint(LPRINT_NORMAL, "This is not a user"); |
628 return; | 629 return; |
629 } | 630 } |
630 | 631 |
631 buddy_setflags(bud, ROSTER_FLAG_LOCK, TRUE); | 632 buddy_setflags(bud, ROSTER_FLAG_LOCK, TRUE); |