ID:145217
 
Code:
mob/Topic(href,href_list[])
switch(href_list["action"])
if("whisper")
var/mob/lol = "[href_list["namer"]]"
var/Mo = input("What would you like to whisper to [lol]?","Whisper")as null|text
if(Mo == "" || Mo == " " || Mo == " ")
return
if(findtext(Mo,"\n")) return
src << "You whisper to [lol]: [Mo]"
lol << "[src] whispers to you: [Mo]"


Problem description:
Everything works fine up until actualy delivering the message. the lol << "blahbolah" part.

The lol var was located wrong,

var/mob/lol=locate(href_list["lol"]) would work better.

Also, you should check if lol exists.

if(lol)
  //whisper stuff here.


In response to DivineO'peanut
Ok, i just got back from school and i put that stuff in. With locate(href_list["namer"]) it just doesn't work, and the if(lol) doesnt make a difference, it does same thing.
It only shows the usr what he/she whisper'd, but it doesn't deliver the message to the actual mob.
In response to Evidence
if(lol) is a req if you wanna kill a few bugs.

if("whisper)
  var/client/lol=locate(h["lol"])
  if(lol)
    //whisper stuff here.


is an example of how it should work.