<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
  img {
    max-width: 100%;
    height: auto;
  }
  p.details {
    font-style:italic;
    color:#777
  }
  .footer p {
    font-size:small;
    color:#777
  }
  pre.commit-message {
    white-space: pre-wrap;
  }
  .file-stats a {
    text-decoration: none;
  }
  .file-stats .new-file {
    color: #090;
  }
  .file-stats .deleted-file {
    color: #B00;
  }
</style>
<body>
<div class='content'>
<h3>Justin Mitchell pushed to branch master at <a href="https://projects.sucs.org/arthur/mw">Justin Mitchell / mw</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://projects.sucs.org/arthur/mw/commit/05e5b48dcbc5dac81546fc0e0f454dc8bf6bd5c1">05e5b48d</a></strong>
<div>
<span>by Justin Mitchell</span>
<i>at 2016-01-22T15:36:13Z</i>
</div>
<pre class='commit-message'>Remove user online check from .notsayto command, fixes #14
replace user online check offered to scripts</pre>
</li>
</ul>
<h4>3 changed files:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
src/client/script_inst.c
</a>
</li>
<li class='file-stats'>
<a href='#diff-1'>
src/client/talker.c
</a>
</li>
<li class='file-stats'>
<a href='#diff-2'>
src/client/talker.h
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://projects.sucs.org/arthur/mw/commit/05e5b48dcbc5dac81546fc0e0f454dc8bf6bd5c1#diff-0'>
<strong>
src/client/script_inst.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/client/script_inst.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/client/script_inst.c
</span><span style="color: #aaaaaa">@@ -1303,10 +1303,10 @@ void scr_end( struct code *pc, int fargc, char **fargv )
</span> void scr_ison( struct code *pc, int fargc, char **fargv )
 {
        char *who;
<span style="color: #000000;background-color: #ffdddd">-        int found;
</span><span style="color: #000000;background-color: #ddffdd">+   int found = 0;
</span> 
        who=eval_arg(pc->argv[0], fargc, fargv);
<span style="color: #000000;background-color: #ffdddd">-        found = ison(who);
</span><span style="color: #000000;background-color: #ddffdd">+   if (who_find(who) != -1) found=1;
</span> 
        compare_count++;
        if (found) {
</code></pre>

<br>
</li>
<li id='diff-1'>
<a href='https://projects.sucs.org/arthur/mw/commit/05e5b48dcbc5dac81546fc0e0f454dc8bf6bd5c1#diff-1'>
<strong>
src/client/talker.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/client/talker.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/client/talker.c
</span><span style="color: #aaaaaa">@@ -106,14 +106,6 @@ void talk_sayto(char *text, const char *to, const char *type)
</span>   mwlog("SAYTO %s %s",to,text);
 }
 
<span style="color: #000000;background-color: #ffdddd">-int ison(const char * uname)
-{
-    /*
-     * Ask the IPC mechanism if a user is there
-     */
-    return (ipc_send_to_username(uname, IPC_NOOP, NULL) > 0);
-}
-
</span> int screen_h(void)
 {
        char    *szLines;
<span style="color: #aaaaaa">@@ -428,11 +420,6 @@ void t_notsayto(CommandList *cm, int argc, const char **argv, char *args)
</span> {
        char text[MAXTEXTLENGTH];
 
<span style="color: #000000;background-color: #ffdddd">-        // check that the excluded person is on
-       if (!ison(argv[1])) {
-           printf(_("User '%s' is not logged on.\n"), argv[1]);
-           return;
-       }
</span>   snprintf(text, MAXTEXTLENGTH, "%s", args);
        mwlog("NSAYTO %s %s", argv[1], text);
 
</code></pre>

<br>
</li>
<li id='diff-2'>
<a href='https://projects.sucs.org/arthur/mw/commit/05e5b48dcbc5dac81546fc0e0f454dc8bf6bd5c1#diff-2'>
<strong>
src/client/talker.h
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/client/talker.h
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/client/talker.h
</span><span style="color: #aaaaaa">@@ -3,9 +3,6 @@
</span> 
 #include "Parse.h"
 
<span style="color: #000000;background-color: #ffdddd">-/* talker.c */
-int ison(const char * uname);
-
</span> /* talker command functions */
 void t_bind(CommandList *cm, int argc, const char **argv, char *args);
 void t_unbind(CommandList *cm, int argc, const char **argv, char *args);
</code></pre>

<br>
</li>

</div>
<div class='footer' style='margin-top: 10px;'>
<p>

<br>
<a href="https://projects.sucs.org/arthur/mw/commit/05e5b48dcbc5dac81546fc0e0f454dc8bf6bd5c1">View it on GitLab</a>.
<br>
You're receiving this email because of your account on projects.sucs.org.
If you'd like to receive fewer emails, you can adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://projects.sucs.org/arthur/mw/commit/05e5b48dcbc5dac81546fc0e0f454dc8bf6bd5c1"}}</script>
</p>
</div>
</body>
</html>