[mw-devel] [Git][arthur/mw][master] 2 commits: Added silent entry mode for webclient
Andrew Price
welshbyte at sucs.org
Thu Jun 22 11:56:09 BST 2017
Andrew Price pushed to branch master at Justin Mitchell / mw
Commits:
b3ccdf38 by Isabel Jenkins at 2017-06-21T19:47:58+01:00
Added silent entry mode for webclient
- - - - -
a6ef8ff6 by Isabel Jenkins at 2017-06-22T09:41:05+01:00
Updated mwpoll for quiet exit as well as entry
- - - - -
1 changed file:
- src/webclient/mwpoll.c
Changes:
=====================================
src/webclient/mwpoll.c
=====================================
--- a/src/webclient/mwpoll.c
+++ b/src/webclient/mwpoll.c
@@ -54,6 +54,7 @@ static void usage(const char *name)
printf("-c channel Initial channel to join\n");
printf("-d Debug (foreground) mode\n");
printf("-s Session mode for sucssite\n");
+ printf("-q Quiet entry\n");
printf("-a Auto create user if required\n");
printf("-h host:port Specify alternate server to connect to.\n");
}
@@ -64,6 +65,7 @@ int main(int argc, char ** argv)
int channel = 0;
int debug = 0;
int dbsession = 0;
+ int quietentry = 0;
int autocreate = 0;
const char *username = NULL;
const char *hostname = NULL;
@@ -87,6 +89,9 @@ int main(int argc, char ** argv)
case 's':
dbsession++;
break;
+ case 'q':
+ quietentry++;
+ break;
case 'a':
autocreate++;
break;
@@ -220,7 +225,9 @@ int main(int argc, char ** argv)
/* spock, announce us please... */
//broadcast_onoffcode(3, 0, user->name, NULL);
- talk_rawbcast("\03310%s has just joined web talker room %d", me.record.name, me.record.room);
+ if (!quietentry) {
+ talk_rawbcast("\03310%s has just joined web talker room %d", me.record.name, me.record.room);
+ }
broadcast_onoffcode(1, 0, me.record.name, NULL);
/* the main loop */
@@ -241,7 +248,9 @@ int main(int argc, char ** argv)
me.record.chatmode = cm_clear(&me, CM_ONCHAT);
update_user(user);
- talk_rawbcast("\03311%s has just left the web talker", me.record.name);
+ if (!quietentry) {
+ talk_rawbcast("\03311%s has just left the web talker", me.record.name);
+ }
broadcast_onoffcode(0,0,me.record.name,NULL);
#if 0
switch (die) {
View it on GitLab: https://projects.sucs.org/arthur/mw/compare/42dd10400888430690457b9605ec54053fc328b1...a6ef8ff603f3a3cb4dff46883883956f81f267d0
---
View it on GitLab: https://projects.sucs.org/arthur/mw/compare/42dd10400888430690457b9605ec54053fc328b1...a6ef8ff603f3a3cb4dff46883883956f81f267d0
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/mw-devel/attachments/20170622/e09faefb/attachment-0001.html>
More information about the mw-devel
mailing list