Advertisement
Guest User

Untitled

a guest
Oct 5th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.63 KB | None | 0 0
  1.             case "NICK":
  2.             {
  3.                 string new_nick = recvd[2][1..$];
  4.                 string old_nick = recvd[0].split("!")[0][1 .. $];
  5.  
  6.                 foreach (string channel, string[] list; users)
  7.                 {
  8.                     for (int i = 0; i < list.length; i++)
  9.                     {
  10.                         string nick = list[i];
  11.                         if (nick == old_nick)
  12.                         {
  13.                             list[i] = new_nick;
  14.                             break;
  15.                         }
  16.                     }
  17.                 }
  18.  
  19.                 break;
  20.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement